-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (51 loc) · 1.41 KB
/
External_BuildAndRunTests.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
name: External - Build and run Tests
on:
[push, pull_request]
jobs:
external_build_and_run_tests:
name: External - Build and run Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-22.04', 'ubuntu-24.04', 'macos-13', 'macos-latest', 'windows-latest']
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Install dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get install cmake ninja-build libtbb-dev catch2
- name: Install dependencies
if: runner.os == 'macOS'
shell: bash
run: |
brew install ninja
- name: Install dependencies
if: runner.os == 'Windows'
run: |
choco upgrade ccache ninja
- name: Ccache
uses: hendrikmuhs/[email protected]
with:
key: external-${{ matrix.os }}-${{ github.ref }}
- name: Build
shell: bash
run: |
mkdir build
cd build
cmake -GNinja \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_BUILD_TYPE=Release \
-DVCLIB_BUILD_MODULE_EXTERNAL=ON \
-DVCLIB_CORE_BUILD_EXAMPLES=OFF -DVCLIB_CORE_BUILD_TESTS=OFF \
..
ninja
- name: Run Tests
shell: bash
run: |
cd build
ctest --verbose