From 5dc356dcbed4bd6ef09d92491154463910e74cca Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 1 Nov 2024 17:30:00 +0200 Subject: [PATCH] windows ci --- .github/workflows/ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed3cbb65..1f18d4cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,7 @@ jobs: build: runs-on: windows-latest - + name: "Windows MSVC 2022 (C++11, Release)" steps: - name: Checkout code uses: actions/checkout@v2 @@ -88,8 +88,20 @@ jobs: run: choco install cmake --installargs '"ADD_CMAKE_TO_PATH=System"' --no-progress - name: Configure CMake - run: cmake -S . -B build + 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 --output-on-failure +