-
-
Notifications
You must be signed in to change notification settings - Fork 326
35 lines (29 loc) · 763 Bytes
/
build-and-test.yml
File metadata and controls
35 lines (29 loc) · 763 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
name: Windows CMake Build & Test
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install MinGW
run: |
choco install mingw --version=12.2.0 -y
echo "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin" >> $GITHUB_PATH
gcc --version
- name: Build
run: |
mkdir __build__
cd __build__
cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=gcc -S.. -G Ninja
cmake --build .
- name: Run Tests
working-directory: __build__
run: |
ctest . --output-on-failure