-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (55 loc) · 1.6 KB
/
Linux_tests.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Linux
# Trigger the action.
on:
push:
branches:
- main
- develop
- github-actions
jobs:
Clang:
name: Ubuntu | Clang
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build_config: [Release, Debug]
clang_version: [9, 10, 11 ,12]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: "Install Clang compiler"
run: sudo apt-get install clang++-${{ matrix.clang_version }}
- name: Generate Project
run: cmake --preset="Clang"
- name: Build Project
run: cmake --build --preset="Clang ${{ matrix.build_config }}"
- name: Run CTests
run: ctest --preset="Clang ${{ matrix.build_config }}"
GCC:
name: Ubuntu | GCC
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build_config: [Release, Debug]
gcc_version: [9, 10, 11 ,12]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Install GCC compiler
run: sudo apt-get install g++-${{ matrix.gcc_version }}
- name: Generate Project
run: cmake --preset="GCC"
- name: Build Project
run: cmake --build --preset="GCC ${{ matrix.build_config }}"
- name: Run CTests
run: ctest --preset="GCC ${{ matrix.build_config }}"