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 }} |
Davide Pesavento | 4791fcb | 2022-08-14 17:40:05 -0400 | [diff] [blame] | 16 | runs-on: ${{ matrix.os }} |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 17 | strategy: |
| 18 | fail-fast: false |
| 19 | matrix: |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 20 | os: [ubuntu-20.04] |
Davide Pesavento | 4791fcb | 2022-08-14 17:40:05 -0400 | [diff] [blame] | 21 | compiler: [g++-7, g++-8, g++-9, g++-10, |
| 22 | clang++-7, clang++-8, clang++-9, clang++-10, clang++-11, clang++-12] |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 23 | include: |
Davide Pesavento | 4791fcb | 2022-08-14 17:40:05 -0400 | [diff] [blame] | 24 | - os: ubuntu-22.04 |
| 25 | compiler: g++-11 |
| 26 | - os: ubuntu-22.04 |
| 27 | compiler: g++-12 |
| 28 | - os: ubuntu-22.04 |
| 29 | compiler: clang++-13 |
| 30 | - os: ubuntu-22.04 |
| 31 | compiler: clang++-14 |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 32 | env: |
| 33 | CXX: ${{ matrix.compiler }} |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 34 | steps: |
| 35 | - name: Install C++ compiler |
| 36 | run: | |
| 37 | sudo apt-get -qy install ${CXX/clang++/clang} |
| 38 | ${CXX} --version |
| 39 | - name: Checkout |
Davide Pesavento | c52cd5e | 2022-03-05 20:40:54 -0500 | [diff] [blame] | 40 | uses: actions/checkout@v3 |
Davide Pesavento | 4791fcb | 2022-08-14 17:40:05 -0400 | [diff] [blame] | 41 | with: |
| 42 | submodules: true |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 43 | - name: Build and test |
| 44 | run: ./.jenkins |
| 45 | |
| 46 | macos: |
| 47 | name: Xcode ${{ matrix.xcode }} on ${{ matrix.os }} |
Davide Pesavento | 4791fcb | 2022-08-14 17:40:05 -0400 | [diff] [blame] | 48 | runs-on: ${{ matrix.os }} |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 49 | strategy: |
| 50 | fail-fast: false |
| 51 | matrix: |
Davide Pesavento | 4791fcb | 2022-08-14 17:40:05 -0400 | [diff] [blame] | 52 | os: [macos-11] |
| 53 | xcode: ['12.4', '12.5', '13.2'] |
Davide Pesavento | f28a061 | 2021-09-29 23:13:32 -0400 | [diff] [blame] | 54 | include: |
Davide Pesavento | 4791fcb | 2022-08-14 17:40:05 -0400 | [diff] [blame] | 55 | - os: macos-12 |
| 56 | xcode: '13.4' |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 57 | steps: |
| 58 | - name: Set up Xcode |
| 59 | uses: maxim-lobanov/setup-xcode@v1 |
| 60 | with: |
| 61 | xcode-version: ${{ matrix.xcode }} |
| 62 | - name: Checkout |
Davide Pesavento | c52cd5e | 2022-03-05 20:40:54 -0500 | [diff] [blame] | 63 | uses: actions/checkout@v3 |
Davide Pesavento | 4791fcb | 2022-08-14 17:40:05 -0400 | [diff] [blame] | 64 | with: |
| 65 | submodules: true |
Davide Pesavento | 8f0028d | 2021-07-27 20:01:06 -0400 | [diff] [blame] | 66 | - name: Build and test |
| 67 | run: ./.jenkins |