-
Notifications
You must be signed in to change notification settings - Fork 21
57 lines (51 loc) · 1.72 KB
/
unit_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
name: Unit tests
on:
push:
branches: ["develop"]
pull_request:
branches:
- "develop"
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: true
jobs:
debian_static:
name: Debian 11 (static libraries)
runs-on: ubuntu-latest
container: ghcr.io/educelab/ci-docker:11_v2.static
if: ${{ github.event_name }} == "merge_request_event" || !(${{ github.ref }} && $CI_OPEN_MERGE_REQUESTS) || ${{ github.ref }}
timeout-minutes: 180
env:
EXTRA_CMAKE_FLAGS: "-DVC_BUILD_ACVD=ON -DVC_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVC_BUILD_TESTS=ON"
CMAKE_PREFIX_PATH: "/usr/local/Qt-6.4.2/"
steps:
- name: Checkout code
uses: actions/checkout@v3.3.0
with:
fetch-depth: 20
- name: Build volume-cartographer
run: |
cmake -S . -B build/ -GNinja $EXTRA_CMAKE_FLAGS
cmake --build build/
- name: Run tests
run: ctest -V --test-dir build/
debian_dynamic:
name: Debian 11 (shared libraries)
runs-on: ubuntu-latest
container: ghcr.io/educelab/ci-docker:11_v2.dynamic
if: ${{ github.event_name }} == "merge_request_event" || !(${{ github.ref }} && $CI_OPEN_MERGE_REQUESTS) || ${{ github.ref }}
timeout-minutes: 180
env:
EXTRA_CMAKE_FLAGS: "-DVC_BUILD_ACVD=ON -DBUILD_SHARED_LIBS=ON -DVC_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVC_BUILD_TESTS=ON"
CMAKE_PREFIX_PATH: "/usr/local/Qt-6.4.2/"
steps:
- name: Checkout code
uses: actions/checkout@v3.3.0
with:
fetch-depth: 20
- name: Build volume-cartographer
run: |
cmake -S . -B build/ -GNinja $EXTRA_CMAKE_FLAGS
cmake --build build/
- name: Run tests
run: ctest -V --test-dir build/