aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: d86c696cc009731dc58a99d92277a2444e89cd8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#############################################################################
#
# Author: Jia Tan
#
# This file has been put into the public domain.
# You can do whatever you want with this file.
#
#############################################################################

name: CI

on:
  # Triggers the workflow on push or pull request events but only for the master branch
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

  # Allows running workflow manually
  workflow_dispatch:

jobs:
  # When CMake can support disabling check types and
  # encoders/decoders/threads, it will be combined to one Linux job
  # and another matrix list.
  Linux-Autotools:
    # Just run on latest ubuntu
    runs-on: ubuntu-latest
    strategy:
      matrix:
        check_types: ["crc32", "crc32,crc64", "crc32,sha256", "crc32,crc64,sha256"]
        disable: [encoders, decoders, bcj, delta, threads]
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v2
      - name: Install Dependencies
        run: sudo apt-get install -y autoconf automake build-essential po4a autopoint
      - name: Build
        run: ./build-aux/ci_build.sh -b autotools -c ${{ matrix.check_types }} -d ${{ matrix.disable }}

  Linux-CMake:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Install Dependencies
        run: sudo apt-get install -y build-essential cmake
      - name: Build
        run: ./build-aux/ci_build.sh -b cmake

  MacOS-Autotools:
    runs-on: macos-latest
    strategy:
      matrix:
        check_types: ["crc32", "crc32,crc64", "crc32,sha256", "crc32,crc64,sha256"]
        disable: [encoders, decoders, bcj, delta, threads]
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v2
      - name: Install Dependencies
        run: brew install autoconf automake libtool po4a
      - name: Build
        run: ./build-aux/ci_build.sh -b autotools -c ${{ matrix.check_types }} -d ${{ matrix.disable }}

  MacOS-CMake:
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v2
      - name: Install Dependencies
        run: brew install cmake
      - name: Build
        run: ./build-aux/ci_build.sh -b cmake