-
Notifications
You must be signed in to change notification settings - Fork 42
50 lines (46 loc) · 1.01 KB
/
native.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
name: Native Builds
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CMAKE_BUILD_PARALLEL_LEVEL: 3
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
native-linux:
name: Native Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Dependencies
run: |
sudo apt-get install -y linux-headers-$(uname -r) libssl-dev nlohmann-json3-dev doctest-dev
- name: Create CMake Cache
run: |
cmake -B build -DTESTING=ON
- name: Build
run: |
cmake --build build
- name: Test
run: |
cmake --build build --target test
native-macos:
name: Native MacOs
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Dependencies
run: |
brew install nlohmann-json doctest
- name: Create CMake Cache
run: |
cmake -B build -DTESTING=ON
- name: Build
run: |
cmake --build build
- name: Test
run: |
cmake --build build --target test