Fix win ci

This commit is contained in:
gabime 2024-11-01 18:41:17 +02:00
parent d939255f0e
commit 6c7201553d

View File

@ -3,9 +3,6 @@ name: ci
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
# ---------------------------------------------------------------------------------
# Linux
# ---------------------------------------------------------------------------------
build_linux: build_linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults: defaults:
@ -59,9 +56,6 @@ jobs:
make -j2 make -j2
ctest -j2 --output-on-failure ctest -j2 --output-on-failure
# ---------------------------------------------------------------------------------
# OSX
# ---------------------------------------------------------------------------------
build_osx: build_osx:
runs-on: macOS-latest runs-on: macOS-latest
name: "OS X Clang (C++11, Release)" name: "OS X Clang (C++11, Release)"
@ -82,18 +76,10 @@ jobs:
-DSPDLOG_SANITIZE_ADDRESS=OFF -DSPDLOG_SANITIZE_ADDRESS=OFF
make -j2 make -j2
ctest -j2 --output-on-failure ctest -j2 --output-on-failure
# ---------------------------------------------------------------------------------
# Windows build_windows_msvc_2022:
# ---------------------------------------------------------------------------------
build_windows:
runs-on: windows-latest runs-on: windows-latest
strategy: name: "Windows MSVC 2022 (C++11, Release)"
matrix:
msvc_version:
- { name: "Visual Studio 17 2022", generator: "Visual Studio 17 2022" }
name: "Windows ${{ matrix.msvc_version.name }} (C++11, Release)"
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -106,7 +92,7 @@ jobs:
- name: Configure CMake - name: Configure CMake
run: | run: |
cmake -S . -B build -G "${{ matrix.msvc_version.generator }}" -A x64\ cmake -S . -B build -G "Visual Studio 17 2022" -A x64 \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_STANDARD=11 -DCMAKE_CXX_STANDARD=11
-DSPDLOG_BUILD_EXAMPLE=ON -DSPDLOG_BUILD_EXAMPLE=ON
@ -122,3 +108,4 @@ jobs:
- name: Run Tests - name: Run Tests
run: ctest --test-dir build -C Release --output-on-failure --verbose run: ctest --test-dir build -C Release --output-on-failure --verbose