Skip to content

Commit

Permalink
Fix win ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Nov 1, 2024
1 parent 6f2ead1 commit bff1a60
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 44 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,35 @@ jobs:
-DSPDLOG_SANITIZE_ADDRESS=OFF
make -j2
ctest -j2 --output-on-failure
build_windows:
runs-on: windows-latest
name: "Windows MSVC 2022 (C++11, Release)"
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install CMake
run: choco install cmake --installargs '"ADD_CMAKE_TO_PATH=System"' --no-progress

- name: Verify CMake Version
run: cmake --version

- name: Configure CMake
run: |
cmake -S . -B build -G "Visual Studio 17 2022" -A x64
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_STANDARD=11
-DSPDLOG_BUILD_EXAMPLE=ON
-DSPDLOG_BUILD_EXAMPLE_HO=ON
-DSPDLOG_BUILD_WARNINGS=ON
-DSPDLOG_BUILD_BENCH=OFF
-DSPDLOG_BUILD_TESTS=ON
-DSPDLOG_BUILD_TESTS_HO=OFF
-DSPDLOG_SANITIZE_ADDRESS=OFF
- name: Build
run: cmake --build build --config Release

- name: Run Tests
run: ctest --test-dir build -C Release --output-on-failure --verbose
44 changes: 0 additions & 44 deletions .github/workflows/win-ci.yml

This file was deleted.

0 comments on commit bff1a60

Please sign in to comment.