-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (39 loc) · 1012 Bytes
/
test.yaml
File metadata and controls
43 lines (39 loc) · 1012 Bytes
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
name: test
on:
workflow_dispatch:
push:
jobs:
build:
strategy:
fail-fast: false
matrix:
build_config: [ Debug, Release ]
# name: [ linux, macOS, windows ]
name: [ linux, macOS ]
include:
- name: Linux
os: ubuntu-latest
- name: macOS
os: macos-15
# - name: Windows
# os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Configure & Build
shell: bash
run: |
if [ "$OSTYPE" = "linux-gnu" ]; then
export CC=/usr/bin/gcc-14
export CXX=/usr/bin/g++-14
gcc -v
g++ -v
fi
cmake -B build_dir -DCMAKE_BUILD_TYPE=${{ matrix.build_config }}
cmake --build build_dir --config ${{ matrix.build_config }}
- name: Run Tests
working-directory: build_dir
shell: bash
run: ctest