-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 884 Bytes
/
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
name: Linux
on: #[push, pull_request]
push:
paths-ignore:
- '*.md'
- '.gitlab-ci.yml'
- '.circleci/**'
- 'docs/**'
- 'data_files/**'
- 'images/**'
- 'scripts/**'
jobs:
linux-build:
name: Compilation
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [clang++-15, g++]
type: [Debug, Release]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: sudo apt update && sudo apt install -y cmake ninja-build gcc g++ clang-15
- name: Configure
run: cmake -GNinja -H. -B../Build -DINCH_UNIT_TESTS=ON -DCMAKE_CXX_COMPILER=/usr/bin/${{ matrix.compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.type }}
- name: Build
run: cmake --build ../Build
- name: Test
run: cd ../Build && ctest -j2 -V