-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (38 loc) · 1.25 KB
/
linux.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
name: linux
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
build-type: [ Release, RelWithDebInfo ]
compiler: [
{ cxx: g++-11, pkgs: g++-11 libtbb-dev gdb },
{ cxx: g++-12, pkgs: g++-12 libtbb-dev gdb },
{ cxx: clang++-14, pkgs: clang-14 libtbb-dev gdb },
{ cxx: clang++-15, pkgs: clang-15 libtbb-dev gdb },
]
defaults:
run:
working-directory: ${{ github.workspace }}/build
name: ${{ matrix.compiler.cxx }}, ${{ matrix.build-type }}
steps:
- name: checkout-repo
uses: actions/checkout@v3
- name: setup-compiler
run: sudo apt update && sudo apt install -y ${{ matrix.compiler.pkgs }}
- name: setup-catch
env:
CXX: ${{ matrix.compiler.cxx }}
run: sudo bash ./install_catch.sh
- name: setup-build
env:
CXX: ${{ matrix.compiler.cxx }}
run: cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -DGAPP_LINK_TBB=ON -DBUILD_SHARED_LIBS=OFF
- name: build
run: cmake --build . --parallel
- name: run-tests
run: gdb -ex run ./unit_tests --args schedule-random
- name: install
run: sudo cmake --install .