Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65e4979

Browse files
committed
Add a windows workflow
1 parent 37c3c50 commit 65e4979

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/build-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
env:
1010
BUILD_TYPE: Release
1111

12+
# TODO: Use matrix instead
1213
jobs:
1314
build-gcc:
1415
runs-on: ubuntu-latest
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: build-windows
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
BUILD_TYPE: Release
11+
12+
# TODO: Use matrix instead
13+
# TODO: Add clang-cl build
14+
jobs:
15+
build-cl:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: ilammy/msvc-dev-cmd@v1
21+
- uses: Bacondish2023/setup-googletest@v1
22+
with:
23+
tag: v1.14.0
24+
25+
- name: Configure CMake
26+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -GNinja
27+
28+
- name: Build with GCC
29+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
30+
31+
- name: Test
32+
working-directory: ${{github.workspace}}/build
33+
run: ctest -C ${{env.BUILD_TYPE}}

0 commit comments

Comments
 (0)