-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (37 loc) · 1.06 KB
/
build.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
name: Build and Test
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Windows MSVC",
os: windows-latest
}
- {
name: "Ubuntu GCC",
os: ubuntu-latest
}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Extern
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
cmd.exe //c build-extern.cmd
elif [ "$RUNNER_OS" == "Linux" ]; then
./build-extern.sh
fi
- name: Build
shell: bash
run: |
mkdir build
cd build
cmake ..
cmake --build .
ctest