-
-
Notifications
You must be signed in to change notification settings - Fork 13
55 lines (47 loc) · 1.18 KB
/
ubuntu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Ubuntu
on:
push:
branches: [ develop, main]
pull_request:
branches: [ develop, main ]
env:
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
build-gcc:
runs-on: ${{matrix.os}}
name: ${{ matrix.os}} gcc${{ matrix.version }} C++${{ matrix.cpp }}
strategy:
fail-fast: false
max-parallel: 4
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
cpp: [17]
version: [9, 10, 11]
include:
- os: ubuntu-22.04
version: 12
- os: ubuntu-20.04
version: 7
- os: ubuntu-20.04
version: 8
env:
CPP_STANDARD: ${{ matrix.cpp }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- name: set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: ${{matrix.version}}
platform: x64
- name: Configure
run: cmake -S . -B build
- name: Build
run: cmake --build build --config Debug -j4
- name: Run tests
run: |
cd build
ctest --build-config Debug