-
Notifications
You must be signed in to change notification settings - Fork 21
114 lines (97 loc) · 3.38 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Unit tests
on:
workflow_dispatch:
push:
branches: ["develop"]
pull_request:
branches:
- "develop"
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: true
jobs:
debian_static:
name: Debian 12 (static libraries)
runs-on: ubuntu-latest
container: ghcr.io/educelab/ci-docker:static.12.1
if: ${{ github.event_name }} == "merge_request_event" || !(${{ github.ref }} && $CI_OPEN_MERGE_REQUESTS) || ${{ github.ref }}
timeout-minutes: 180
env:
EXTRA_CMAKE_FLAGS: "-DVC_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVC_BUILD_TESTS=ON"
CMAKE_PREFIX_PATH: "/usr/local/Qt-6.7.2/"
steps:
- name: Checkout code
uses: actions/checkout@v4
- 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 12 (shared libraries)
runs-on: ubuntu-latest
container: ghcr.io/educelab/ci-docker:dynamic.12.1
if: ${{ github.event_name }} == "merge_request_event" || !(${{ github.ref }} && $CI_OPEN_MERGE_REQUESTS) || ${{ github.ref }}
timeout-minutes: 180
env:
EXTRA_CMAKE_FLAGS: "-DBUILD_SHARED_LIBS=ON -DVC_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVC_BUILD_TESTS=ON"
CMAKE_PREFIX_PATH: "/usr/local/Qt-6.7.2/"
steps:
- name: Checkout code
uses: actions/checkout@v4
- 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/
macos_13:
name: macOS 13
runs-on: macos-13
if: ${{ github.event_name }} == "merge_request_event" || !(${{ github.ref }} && $CI_OPEN_MERGE_REQUESTS) || ${{ github.ref }}
timeout-minutes: 180
env:
EXTRA_CMAKE_FLAGS: "-DVC_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVC_BUILD_TESTS=ON"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use the Command Line Tools
run: |
sudo xcode-select -s /Library/Developer/CommandLineTools
- name: Install dependencies
run: |
brew bundle
brew install ninja
- 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/
macos_14:
name: macOS 14
runs-on: macos-14
if: ${{ github.event_name }} == "merge_request_event" || !(${{ github.ref }} && $CI_OPEN_MERGE_REQUESTS) || ${{ github.ref }}
timeout-minutes: 180
env:
EXTRA_CMAKE_FLAGS: "-DVC_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVC_BUILD_TESTS=ON"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use the Command Line Tools
run: |
sudo xcode-select -s /Library/Developer/CommandLineTools
- name: Remove problematic SDKs
run: |
sudo rm -rf /Library/Developer/CommandLineTools/SDKs/MacOSX15*.sdk
- name: Install dependencies
run: |
brew bundle
brew install ninja
- 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/