Skip to content

Commit c248f79

Browse files
And another try
1 parent 0566677 commit c248f79

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.github/workflows/windows-cmake.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121

2222
- name: ⚙️ Install Ninja build system
2323
run: choco install ninja --no-progress
24-
shell: powershell
2524

2625
- name: 📥 Install Qt for MSVC
2726
uses: jurplel/install-qt-action@v3
@@ -33,26 +32,26 @@ jobs:
3332
dir: ${{ env.QT_DIR }}
3433
setup-python: false
3534

35+
- name: 🏗️ Setup MSVC Developer Environment
36+
uses: ilammy/setup-msvc-dev@v1
37+
with:
38+
arch: x64
39+
3640
- name: 🛠️ Configure CMake with Ninja + MSVC
37-
shell: cmd
3841
run: |
39-
"C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 && ^
40-
cmake -S . -B build -G Ninja -A x64 ^
41-
-DCMAKE_PREFIX_PATH="${{ env.QT_DIR }}\Qt\${{ env.QT_VERSION }}\msvc2019_64" ^
42-
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\install" ^
42+
cmake -S . -B build -G Ninja -A x64 `
43+
-DCMAKE_PREFIX_PATH="${{ env.QT_DIR }}\Qt\${{ env.QT_VERSION }}\msvc2019_64" `
44+
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\install" `
4345
-DCMAKE_BUILD_TYPE=Release
46+
shell: powershell
4447

4548
- name: 🔨 Build with Ninja + MSVC
46-
shell: cmd
47-
run: |
48-
"C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 && ^
49-
cmake --build build
49+
run: cmake --build build
50+
shell: powershell
5051

5152
- name: 📦 Install built files
52-
shell: cmd
53-
run: |
54-
"C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 && ^
55-
cmake --install build
53+
run: cmake --install build
54+
shell: powershell
5655

5756
build_windows_mingw:
5857
name: Build with MinGW and CMake

0 commit comments

Comments
 (0)