File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 54
54
shell : powershell
55
55
56
56
build_windows_mingw :
57
- name : Build with MinGW and CMake (no Ninja)
57
+ name : Build with Qt's MinGW and CMake (no Ninja)
58
58
runs-on : windows-2022
59
59
60
60
env :
67
67
with :
68
68
fetch-depth : 0
69
69
70
- - name : ⚙️ Install MinGW toolchain
71
- run : choco install mingw --no-progress
72
- shell : powershell
73
-
74
- - name : ➕ Add MinGW to system PATH
75
- run : echo "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin" >> $env:GITHUB_PATH
76
- shell : powershell
77
-
78
- - name : 📥 Install Qt for MinGW
70
+ - name : 📥 Install Qt for MinGW (with bundled toolchain)
79
71
uses : jurplel/install-qt-action@v4
80
72
with :
81
73
aqtversion : ' ==3.1.19'
86
78
dir : ${{ env.QT_DIR }}
87
79
setup-python : false
88
80
81
+ - name : ➕ Add Qt-bundled MinGW to PATH
82
+ shell : powershell
83
+ run : |
84
+ $mingwPath = Get-ChildItem "${{ env.QT_DIR }}\Tools" | Where-Object { $_.Name -like "mingw*" } | Select-Object -First 1
85
+ echo "${{ env.QT_DIR }}\Tools\$($mingwPath.Name)\bin" >> $env:GITHUB_PATH
86
+
89
87
- name : 🛠️ Configure CMake (MinGW)
90
88
shell : powershell
91
89
run : |
101
99
102
100
- name : 📦 Install built files (MinGW)
103
101
shell : powershell
104
- run : cmake --install build-mingw
102
+ run : cmake --install build-mingw
You can’t perform that action at this time.
0 commit comments