Davide Pesavento | 30ed628 | 2021-07-25 20:05:06 -0400 | [diff] [blame] | 1 | name: CI |
| 2 | on: |
| 3 | push: |
Davide Pesavento | 01cea50 | 2021-07-31 19:25:42 -0400 | [diff] [blame] | 4 | paths-ignore: |
| 5 | - 'docs/**' |
| 6 | - '*.md' |
| 7 | - '.mailmap' |
| 8 | - '.travis.yml' |
Davide Pesavento | 30ed628 | 2021-07-25 20:05:06 -0400 | [diff] [blame] | 9 | workflow_dispatch: |
| 10 | |
Davide Pesavento | 01cea50 | 2021-07-31 19:25:42 -0400 | [diff] [blame] | 11 | permissions: |
| 12 | contents: read |
| 13 | |
Davide Pesavento | 30ed628 | 2021-07-25 20:05:06 -0400 | [diff] [blame] | 14 | jobs: |
| 15 | linux: |
| 16 | name: ${{ matrix.compiler }} on ${{ matrix.os }} |
| 17 | strategy: |
| 18 | fail-fast: false |
| 19 | matrix: |
| 20 | compiler: [g++-8, g++-9, g++-10, g++-11, |
| 21 | clang++-7, clang++-8, clang++-9, clang++-10, clang++-11, clang++-12] |
| 22 | os: [ubuntu-20.04] |
| 23 | include: |
| 24 | - compiler: g++-7 |
| 25 | os: ubuntu-18.04 |
| 26 | - compiler: clang++-5.0 |
| 27 | os: ubuntu-18.04 |
| 28 | - compiler: clang++-6.0 |
| 29 | os: ubuntu-18.04 |
| 30 | runs-on: ${{ matrix.os }} |
| 31 | env: |
| 32 | CXX: ${{ matrix.compiler }} |
| 33 | NODE_LABELS: Linux Ubuntu |
| 34 | WAF_JOBS: 2 |
| 35 | steps: |
| 36 | - name: Install C++ compiler |
| 37 | run: | |
| 38 | sudo apt-get -qy install ${CXX/clang++/clang} |
| 39 | ${CXX} --version |
| 40 | - name: Checkout |
| 41 | uses: actions/checkout@v2 |
| 42 | - name: Build and test |
| 43 | run: ./.jenkins |
| 44 | |
| 45 | macos: |
| 46 | name: Xcode ${{ matrix.xcode }} on ${{ matrix.os }} |
| 47 | strategy: |
| 48 | fail-fast: false |
| 49 | matrix: |
| 50 | xcode: ['11.3', '11.7', '12.4'] |
| 51 | os: [macos-10.15] |
| 52 | runs-on: ${{ matrix.os }} |
| 53 | env: |
| 54 | NODE_LABELS: OSX OSX-10.15 |
| 55 | WAF_JOBS: 3 |
| 56 | steps: |
| 57 | - name: Set up Xcode |
| 58 | uses: maxim-lobanov/setup-xcode@v1 |
| 59 | with: |
| 60 | xcode-version: ${{ matrix.xcode }} |
| 61 | - name: Checkout |
| 62 | uses: actions/checkout@v2 |
| 63 | - name: Build and test |
| 64 | run: ./.jenkins |