-
Notifications
You must be signed in to change notification settings - Fork 964
58 lines (56 loc) · 1.95 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
50
51
52
53
54
55
56
57
58
name: Linux
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
compiler: [g++-11, g++-12, g++-13, clang++-15, clang++-16, clang++-17, clang++-18, clang++-19]
configuration: [Debug, Release]
include:
- os: ubuntu-24.04
compiler: g++-14
configuration: Debug
- os: ubuntu-24.04
compiler: g++-14
configuration: Release
steps:
- uses: actions/checkout@v4
- name: install g++-13
if: matrix.compiler == 'g++-13' || matrix.compiler == 'clang++-18' || matrix.compiler == 'clang++-19'
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update && sudo apt-get install -y g++-13
- name: install clang++-16
if: matrix.compiler == 'clang++-16'
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 16
- name: install clang++-17
if: matrix.compiler == 'clang++-17'
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17
- name: install clang++-18
if: matrix.compiler == 'clang++-18'
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
- name: install clang++-19
if: matrix.compiler == 'clang++-19'
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 19
- name: configure
run: CXX=${{ matrix.compiler }} cmake -Werror=dev -D CMAKE_BUILD_TYPE=${{ matrix.configuration }} -D BUILD_TESTS=1 -D CMAKE_COMPILE_WARNING_AS_ERROR=1 -B build
- name: build source
run: cmake --build build --target Osiris -j $(nproc --all)
- name: build unit tests
run: cmake --build build --target Tests -j $(nproc --all)
- name: run unit tests
run: ctest --test-dir build --output-on-failure --schedule-random -j $(nproc --all)