Davide Pesavento | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame] | 1 | name: CI |
| 2 | on: |
| 3 | push: |
| 4 | paths-ignore: |
| 5 | - 'docs/**' |
| 6 | - '*.md' |
| 7 | - '.mailmap' |
| 8 | workflow_dispatch: |
| 9 | |
| 10 | permissions: |
| 11 | contents: read |
| 12 | |
| 13 | jobs: |
| 14 | linux: |
| 15 | name: ${{ matrix.compiler }} on ${{ matrix.os }} |
Davide Pesavento | ede5963 | 2022-08-26 20:35:44 -0400 | [diff] [blame^] | 16 | runs-on: ${{ matrix.os }} |
Davide Pesavento | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame] | 17 | strategy: |
| 18 | fail-fast: false |
| 19 | matrix: |
Davide Pesavento | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame] | 20 | os: [ubuntu-20.04] |
Davide Pesavento | ede5963 | 2022-08-26 20:35:44 -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 | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame] | 23 | include: |
Davide Pesavento | ede5963 | 2022-08-26 20:35:44 -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 | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame] | 32 | env: |
| 33 | CXX: ${{ matrix.compiler }} |
Davide Pesavento | ba8a4ed | 2021-10-13 21:28:43 -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 | d1f1df8 | 2022-03-12 16:40:37 -0500 | [diff] [blame] | 40 | uses: actions/checkout@v3 |
Davide Pesavento | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame] | 41 | - name: Build and test |
| 42 | run: ./.jenkins |
| 43 | |
| 44 | macos: |
| 45 | name: Xcode ${{ matrix.xcode }} on ${{ matrix.os }} |
Davide Pesavento | ede5963 | 2022-08-26 20:35:44 -0400 | [diff] [blame^] | 46 | runs-on: ${{ matrix.os }} |
Davide Pesavento | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame] | 47 | strategy: |
| 48 | fail-fast: false |
| 49 | matrix: |
Davide Pesavento | ede5963 | 2022-08-26 20:35:44 -0400 | [diff] [blame^] | 50 | os: [macos-11] |
| 51 | xcode: ['12.4', '12.5', '13.2'] |
Davide Pesavento | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame] | 52 | include: |
Davide Pesavento | ede5963 | 2022-08-26 20:35:44 -0400 | [diff] [blame^] | 53 | - os: macos-12 |
| 54 | xcode: '13.4' |
Davide Pesavento | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame] | 55 | steps: |
| 56 | - name: Set up Xcode |
| 57 | uses: maxim-lobanov/setup-xcode@v1 |
| 58 | with: |
| 59 | xcode-version: ${{ matrix.xcode }} |
| 60 | - name: Checkout |
Davide Pesavento | d1f1df8 | 2022-03-12 16:40:37 -0500 | [diff] [blame] | 61 | uses: actions/checkout@v3 |
Davide Pesavento | ba8a4ed | 2021-10-13 21:28:43 -0400 | [diff] [blame] | 62 | - name: Build and test |
| 63 | run: ./.jenkins |