Skip to content

Commit 9650369

Browse files
authored
[CI] Added installation and try fix window error
1 parent 64ce837 commit 9650369

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/cpp.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,15 @@ jobs:
6666
- name: Install Qt6 (Windows)
6767
if: matrix.os == 'windows-latest'
6868
run: |
69-
Invoke-WebRequest -Uri "https://download.qt.io/official_releases/online_installers/qt-unified-windows-x64-online.exe" -OutFile "qt-installer.exe"
70-
Start-Process -FilePath ".\qt-installer.exe" -ArgumentList "--silent", "--platform minimal", "--accept-licenses", "--default-answer" -NoNewWindow -Wait
71-
echo C:\Qt\6.6.0\msvc2019_64\bin | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
69+
python -m pip install aqtinstall
70+
python -m aqt install-qt windows desktop 6.6.0 win64_mingw --outputdir C:\Qt
71+
echo C:\Qt\6.6.0\mingw_64\bin | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
7272
qmake --version
7373
7474
# Build the Project
7575
- name: Build project
7676
run: make build
77+
78+
# Install the Project with desktop shortcut
79+
- name: Install project
80+
run: echo "y" | make install

0 commit comments

Comments
 (0)