Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 1 | name: CI |
| 2 | on: |
| 3 | push: |
Davide Pesavento | c434323 | 2021-08-13 23:17:05 -0400 | [diff] [blame] | 4 | paths-ignore: |
| 5 | - 'docs/**' |
| 6 | - '*.md' |
| 7 | - '.mailmap' |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 8 | workflow_dispatch: |
| 9 | |
Davide Pesavento | c434323 | 2021-08-13 23:17:05 -0400 | [diff] [blame] | 10 | permissions: |
| 11 | contents: read |
| 12 | |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -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 | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 25 | - compiler: clang++-6.0 |
| 26 | os: ubuntu-18.04 |
| 27 | runs-on: ${{ matrix.os }} |
| 28 | env: |
| 29 | CXX: ${{ matrix.compiler }} |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 30 | steps: |
| 31 | - name: Install C++ compiler |
| 32 | run: | |
| 33 | sudo apt-get -qy install ${CXX/clang++/clang} |
| 34 | ${CXX} --version |
| 35 | - name: Checkout |
Davide Pesavento | 96412a1 | 2022-03-05 13:34:23 -0500 | [diff] [blame] | 36 | uses: actions/checkout@v3 |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 37 | - name: Build and test |
| 38 | run: ./.jenkins |
| 39 | |
| 40 | macos: |
| 41 | name: Xcode ${{ matrix.xcode }} on ${{ matrix.os }} |
| 42 | strategy: |
| 43 | fail-fast: false |
| 44 | matrix: |
| 45 | xcode: ['11.3', '11.7', '12.4'] |
| 46 | os: [macos-10.15] |
Davide Pesavento | 2c8ec07 | 2021-09-30 00:04:23 -0400 | [diff] [blame] | 47 | include: |
| 48 | - xcode: '12.5' |
| 49 | os: macos-11 |
Davide Pesavento | 50882eb | 2021-12-29 13:23:23 -0500 | [diff] [blame] | 50 | - xcode: '13.2' |
Davide Pesavento | 2c8ec07 | 2021-09-30 00:04:23 -0400 | [diff] [blame] | 51 | os: macos-11 |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 52 | runs-on: ${{ matrix.os }} |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 53 | steps: |
| 54 | - name: Set up Xcode |
| 55 | uses: maxim-lobanov/setup-xcode@v1 |
| 56 | with: |
| 57 | xcode-version: ${{ matrix.xcode }} |
| 58 | - name: Checkout |
Davide Pesavento | 96412a1 | 2022-03-05 13:34:23 -0500 | [diff] [blame] | 59 | uses: actions/checkout@v3 |
Davide Pesavento | e8c82ef | 2021-07-28 02:38:51 -0400 | [diff] [blame] | 60 | - name: Build and test |
| 61 | run: ./.jenkins |