-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (23 loc) · 768 Bytes
/
Copy pathcmake.yml
File metadata and controls
30 lines (23 loc) · 768 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
name: CMake
on:
push:
branches: ['main']
pull_request:
branches: ['main']
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DGITHUB_ACTION=ON
- name: Build
# Build your program with the given configuration
run: cmake --build build --config ${{env.BUILD_TYPE}} --parallel
- name: Run Tests
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --extra-verbose --output-on-failure