Skip to content

Commit fe8c887

Browse files
Swicthed MinGW build from Ninja to MinGW
1 parent 46e5aea commit fe8c887

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/windows-cmake.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
shell: powershell
5555

5656
build_windows_mingw:
57-
name: Build with MinGW and CMake
57+
name: Build with MinGW and CMake (no Ninja)
5858
runs-on: windows-2022
5959

6060
env:
@@ -67,10 +67,8 @@ jobs:
6767
with:
6868
fetch-depth: 0
6969

70-
- name: ⚙️ Install Ninja and MinGW toolchain
71-
run: |
72-
choco install ninja --no-progress
73-
choco install mingw --no-progress
70+
- name: ⚙️ Install MinGW toolchain
71+
run: choco install mingw --no-progress
7472
shell: powershell
7573

7674
- name: ➕ Add MinGW to system PATH
@@ -84,7 +82,7 @@ jobs:
8482
version: ${{ env.QT_VERSION }}
8583
target: desktop
8684
host: windows
87-
arch: win64_mingw81
85+
arch: win64_mingw
8886
dir: ${{ env.QT_DIR }}
8987
setup-python: false
9088

@@ -95,12 +93,12 @@ jobs:
9593
-DCMAKE_PREFIX_PATH="${{ env.QT_DIR }}\Qt\${{ env.QT_VERSION }}\mingw_64" `
9694
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}\install `
9795
-DCMAKE_BUILD_TYPE=Release `
98-
-G Ninja
96+
-G "MinGW Makefiles"
9997
10098
- name: 🔨 Build with CMake (MinGW)
10199
shell: powershell
102-
run: cmake --build build-mingw
100+
run: cmake --build build-mingw -- -j2
103101

104102
- name: 📦 Install built files (MinGW)
105103
shell: powershell
106-
run: cmake --install build-mingw
104+
run: cmake --install build-mingw

0 commit comments

Comments
 (0)