Skip to content

Commit ee5ce25

Browse files
committed
Create CI.yml
1 parent 9852d36 commit ee5ce25

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/CI.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
10+
env:
11+
BUILD_DIR: ${{ github.workspace}}/vsbuild
12+
13+
jobs:
14+
build:
15+
runs-on: windows-2022
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Check CMake version
21+
run: cmake --version
22+
23+
- name: Configure CMake
24+
run: |
25+
mkdir "${{ env.BUILD_DIR }}"
26+
cd "${{ env.BUILD_DIR }}"
27+
cmake ..
28+
shell: cmd
29+
30+
- name: Build
31+
working-directory: ${{ env.BUILD_DIR }}
32+
run: |
33+
cmake --build . --config Release
34+
shell: cmd
35+
36+
- name: Test
37+
working-directory: ${{ env.BUILD_DIR }}
38+
run: ctest -C Release
39+
shell: cmd

0 commit comments

Comments
 (0)