blob: 28546278e2c27f0d38eeb3d3af42c84689375194 [file] [log] [blame]
Davide Pesavento30ed6282021-07-25 20:05:06 -04001name: CI
2on:
3 push:
Davide Pesavento01cea502021-07-31 19:25:42 -04004 paths-ignore:
5 - 'docs/**'
6 - '*.md'
7 - '.mailmap'
Davide Pesavento30ed6282021-07-25 20:05:06 -04008 workflow_dispatch:
9
Davide Pesavento01cea502021-07-31 19:25:42 -040010permissions:
11 contents: read
12
Davide Pesavento30ed6282021-07-25 20:05:06 -040013jobs:
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 Pesavento30ed6282021-07-25 20:05:06 -040025 - 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 Pesavento541a8222022-03-01 15:08:42 -050038 uses: actions/checkout@v3
Davide Pesavento30ed6282021-07-25 20:05:06 -040039 - 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 Pesavento83f8d162021-09-26 21:58:36 -040049 include:
50 - xcode: '12.5'
51 os: macos-11
Davide Pesavento765abc92021-12-27 00:44:04 -050052 - xcode: '13.2'
Davide Pesavento83f8d162021-09-26 21:58:36 -040053 os: macos-11
Davide Pesavento30ed6282021-07-25 20:05:06 -040054 runs-on: ${{ matrix.os }}
55 env:
Davide Pesaventof6625002022-07-31 17:15:02 -040056 NODE_LABELS: macos
Davide Pesavento30ed6282021-07-25 20:05:06 -040057 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 Pesavento541a8222022-03-01 15:08:42 -050064 uses: actions/checkout@v3
Davide Pesavento30ed6282021-07-25 20:05:06 -040065 - name: Build and test
66 run: ./.jenkins