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' |
Davide Pesavento | 30ed628 | 2021-07-25 20:05:06 -0400 | [diff] [blame] | 8 | workflow_dispatch: |
| 9 | |
Davide Pesavento | 01cea50 | 2021-07-31 19:25:42 -0400 | [diff] [blame] | 10 | permissions: |
| 11 | contents: read |
| 12 | |
Davide Pesavento | 30ed628 | 2021-07-25 20:05: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 |
| 25 | - compiler: clang++-5.0 |
| 26 | os: ubuntu-18.04 |
| 27 | - compiler: clang++-6.0 |
| 28 | os: ubuntu-18.04 |
| 29 | runs-on: ${{ matrix.os }} |
| 30 | env: |
| 31 | CXX: ${{ matrix.compiler }} |
| 32 | NODE_LABELS: Linux Ubuntu |
| 33 | WAF_JOBS: 2 |
| 34 | steps: |
| 35 | - name: Install C++ compiler |
| 36 | run: | |
| 37 | sudo apt-get -qy install ${CXX/clang++/clang} |
| 38 | ${CXX} --version |
| 39 | - name: Checkout |
| 40 | uses: actions/checkout@v2 |
| 41 | - name: Build and test |
| 42 | run: ./.jenkins |
| 43 | |
| 44 | macos: |
| 45 | name: Xcode ${{ matrix.xcode }} on ${{ matrix.os }} |
| 46 | strategy: |
| 47 | fail-fast: false |
| 48 | matrix: |
| 49 | xcode: ['11.3', '11.7', '12.4'] |
| 50 | os: [macos-10.15] |
Davide Pesavento | 83f8d16 | 2021-09-26 21:58:36 -0400 | [diff] [blame^] | 51 | include: |
| 52 | - xcode: '12.5' |
| 53 | os: macos-11 |
| 54 | - xcode: '13' |
| 55 | os: macos-11 |
Davide Pesavento | 30ed628 | 2021-07-25 20:05:06 -0400 | [diff] [blame] | 56 | runs-on: ${{ matrix.os }} |
| 57 | env: |
Davide Pesavento | 83f8d16 | 2021-09-26 21:58:36 -0400 | [diff] [blame^] | 58 | NODE_LABELS: OSX |
Davide Pesavento | 30ed628 | 2021-07-25 20:05:06 -0400 | [diff] [blame] | 59 | WAF_JOBS: 3 |
| 60 | steps: |
| 61 | - name: Set up Xcode |
| 62 | uses: maxim-lobanov/setup-xcode@v1 |
| 63 | with: |
| 64 | xcode-version: ${{ matrix.xcode }} |
| 65 | - name: Checkout |
| 66 | uses: actions/checkout@v2 |
| 67 | - name: Build and test |
| 68 | run: ./.jenkins |