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