-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor CI workflow to separate jobs for Visual Studio 2019 and 2022…
…, removing redundant setup steps and improving clarity.
- Loading branch information
Showing
1 changed file
with
13 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
@( | ||
|
@@ -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 |