Skip to content

Commit ccb0561

Browse files
authored
Create cmake-single-platform.yml
1 parent c4a6c61 commit ccb0561

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This starter workflow is for a CMake project running on Windows.
2+
name: CMake on Windows
3+
4+
on:
5+
push:
6+
branches: [ "main" ]
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
env:
11+
# Customize the CMake build type here (Release, Debug, etc.)
12+
BUILD_TYPE: Release
13+
14+
jobs:
15+
build:
16+
runs-on: windows-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Configure CMake
22+
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
23+
24+
- name: Build
25+
run: cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }}
26+
27+
- name: Test
28+
working-directory: ${{ github.workspace }}/build
29+
run: ctest -C ${{ env.BUILD_TYPE }}

0 commit comments

Comments
 (0)