Skip to content

Commit

Permalink
Refactor CI workflow to separate jobs for Visual Studio 2019 and 2022…
Browse files Browse the repository at this point in the history
…, removing redundant setup steps and improving clarity.
  • Loading branch information
chadlrnsn committed Dec 20, 2024
1 parent ccf1c62 commit f288346
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,17 @@ on:
branches: ["main"]

jobs:
check:
runs-on: windows-latest
check-vs2019:
runs-on: windows-2019

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup VS2019
uses: microsoft/[email protected]
with:
vs-version: "[16.0,17.0)"

- name: Setup VS2022
uses: microsoft/[email protected]
with:
vs-version: "[17.0,18.0)"

- name: Check CMake configuration (VS2019)
run: cmake --preset windows-x64-debug-2019 -Wno-dev --check-system-vars

- name: Check CMake configuration (VS2022)
run: cmake --preset windows-x64-debug-2022 -Wno-dev --check-system-vars

- name: Verify source files exist
run: |
@(
Expand All @@ -47,3 +34,14 @@ jobs:
exit 1
}
}
check-vs2022:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Check CMake configuration (VS2022)
run: cmake --preset windows-x64-debug-2022 -Wno-dev --check-system-vars

0 comments on commit f288346

Please sign in to comment.