Skip to content
This repository was archived by the owner on Oct 12, 2026. It is now read-only.

Commit 86d8b0e

Browse files
authored
Modify CI workflow for Windows 2022 and PowerShell
Updated CI workflow to use Windows 2022 and PowerShell for diagnostics.
1 parent d39cd7c commit 86d8b0e

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

‎.github/workflows/cmake-ci.yml‎

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- os: windows-latest
1818
toolchain: mingw
1919

20-
- os: windows-latest
20+
- os: windows-2022
2121
toolchain: visual-studio
2222

2323
runs-on: ${{ matrix.os }}
@@ -60,19 +60,21 @@ jobs:
6060
echo "C:\msys64\mingw64\bin" >> $env:GITHUB_PATH
6161
6262
##########################################################################
63-
# MSVC
63+
# MSVC / Visual Studio 2022
6464
##########################################################################
6565

6666
- name: Configure MSVC
6767
if: matrix.toolchain == 'visual-studio'
6868
uses: ilammy/msvc-dev-cmd@v1
69+
with:
70+
arch: amd64
6971

7072
##########################################################################
7173
# Diagnostics
7274
##########################################################################
7375

7476
- name: Diagnostics
75-
shell: bash
77+
shell: pwsh
7678
run: |
7779
cmake --version
7880
python --version
@@ -88,8 +90,25 @@ jobs:
8890
if: matrix.toolchain == 'visual-studio'
8991
shell: cmd
9092
run: |
93+
where cl
9194
cl
9295
96+
- name: Verify Visual Studio
97+
if: matrix.toolchain == 'visual-studio'
98+
shell: powershell
99+
run: |
100+
& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" `
101+
-latest `
102+
-products * `
103+
-requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 `
104+
-property installationPath
105+
106+
- name: Verify CMake Visual Studio generator
107+
if: matrix.toolchain == 'visual-studio'
108+
shell: cmd
109+
run: |
110+
cmake --help
111+
93112
##########################################################################
94113
# Build
95114
##########################################################################

0 commit comments

Comments
 (0)