Skip to content

Commit 0d8b313

Browse files
committed
Try GCC Build Again
- Test using gcc from preinstalled MinGW
1 parent 4304faf commit 0d8b313

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build_windows.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
version: ${{ env.QT_VERSION }}
5656
host: 'windows'
5757
target: 'desktop'
58-
arch: 'win64_msvc2022_64'
58+
arch: 'win64_mingw'
5959
cache: true
6060

6161
- name: Set Debug Flags
@@ -70,7 +70,7 @@ jobs:
7070
working-directory: ${{ github.workspace }}
7171
env:
7272
SEED_KEY: ${{ secrets.SEED_KEY }}
73-
run: cmake -B build -DGITHUB_WORKFLOW=True -DQT_GUI=True -DEMBED_DATA=True "${{ env.EXTRA_CMAKE_FLAGS }}"
73+
run: cmake -G "MinGW Makefiles" -B build -DGITHUB_WORKFLOW=True -DQT_GUI=True -DEMBED_DATA=True "${{ env.EXTRA_CMAKE_FLAGS }}"
7474

7575
- name: Build
7676
working-directory: ${{ github.workspace }}
@@ -87,8 +87,11 @@ jobs:
8787
shell: cmd # Setting up environment vars only works properly in cmd?
8888
run: |
8989
mkdir wwhd_rando_windows
90-
cp ${{ inputs.build_type }}\wwhd_rando.exe wwhd_rando_windows\wwhd_rando.exe
91-
cd ${{ github.workspace }}\build\wwhd_rando_windows && windeployqt wwhd_rando.exe --no-translations --no-system-d3d-compiler --no-opengl-sw
90+
cp wwhd_rando.exe wwhd_rando_windows\wwhd_rando.exe
91+
cp ${{ github.workspace }}\..\Qt\${{ env.QT_VERSION }}\mingw_64\bin\libgcc_s_seh-1.dll wwhd_rando_windows\libgcc_s_seh-1.dll
92+
cp ${{ github.workspace }}\..\Qt\${{ env.QT_VERSION }}\mingw_64\bin\libstdc++-6.dll wwhd_rando_windows\libstdc++-6.dll
93+
cp ${{ github.workspace }}\..\Qt\${{ env.QT_VERSION }}\mingw_64\bin\libwinpthread-1.dll wwhd_rando_windows\libwinpthread-1.dll
94+
${{ github.workspace }}\..\Qt\${{ env.QT_VERSION }}\mingw_64\bin\qtenv2.bat && cd ${{ github.workspace }}\build\wwhd_rando_windows && windeployqt wwhd_rando.exe --no-translations --no-system-d3d-compiler --no-opengl-sw
9295
9396
- name: Save Artifact
9497
uses: actions/upload-artifact@v6

0 commit comments

Comments
 (0)