-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.13 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
name: test-linux
on:
push:
branches: [ dev, main ]
# Run tests once a week on Sunday.
schedule:
- cron: "0 6 * * 0"
permissions:
contents: read
env:
CMAKE_BUILD_TYPE: Release
CMAKE_GENERATOR: Ninja
CTEST_OUTPUT_ON_FAILURE: True
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Create Build Environment
run: |
sudo apt update
sudo apt install -y ninja-build
cmake -E make_directory ${{github.workspace}}/build
- name: Install Building Dependencies
uses: ./.github/actions/building-deps
with:
boost: 1.85.0
oneTBB: 2021.12.0
python: 3.12
path: ${HOME}/.local
- name: Configure
working-directory: ${{github.workspace}}/build
run: cmake ..
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --config Release
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -VV -C Release