Skip to content

Commit

Permalink
msvc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kelbon committed Nov 15, 2024
1 parent f5dbeec commit 589767d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/msvc_build_and_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build_and_test_msvc

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: windows-latest

strategy:
matrix:
build_type: [Debug, Release]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up CMake
uses: lukka/get-cmake@latest

- name: Configure with CMake (Visual Studio)
run: |
mkdir build
cd build
cmake .. -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_STANDARD=20 -DKELCORO_ENABLE_TESTING=ON
- name: Build with MSVC
run: |
cd build
cmake --build . --config ${{ matrix.build_type }}
- name: Test
run: |
cd build
ctest --output-on-failure -C ${{matrix.build_type}} -V
1 change: 0 additions & 1 deletion tests/test_stack_resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,4 @@ int main() {
h.resume();
h.destroy();
do_test_resource();
return 0;
}

0 comments on commit 589767d

Please sign in to comment.