Debian Codegraph @

.github/workflows/workflow-build-windows.yaml

raw symbols SCIP
1 name: Build workflow
2
3 on:
4 workflow_call:
5
6 env:
7 package_origin: gh
8
9 jobs:
10 build-windows:
11 runs-on: ubuntu-latest
12 name: Windows builder
13 container:
14 image: docker://pvmm/mingw-arch:latest
15 options: --user=0:0
16 strategy:
17 fail-fast: false
18 steps:
19 - name: Configure base system
20 run: |
21 git config --global init.defaultBranch master
22 - name: Checkout repository code
23 uses: actions/checkout@v3
24 with:
25 fetch-depth: 0
26 - name: Compile repository code
27 id: compile
28 shell: bash
29 run: |
30 # Setting QT_INSTALL_BINS differently won't work since it's overwritten.
31 # export QT_INSTALL_BINS=/usr/x86_64-w64-mingw32/lib/qt/bin/
32 export OPENMSX_TARGET_OS=mingw32
33 export CXX=/usr/bin/x86_64-w64-mingw32-g++
34 export WINDRES=/usr/bin/x86_64-w64-mingw32-windres
35 ln -sf /usr/x86_64-w64-mingw32/lib/qt/bin/uic /usr/x86_64-w64-mingw32/bin/uic
36 ln -sf /usr/x86_64-w64-mingw32/lib/qt/bin/moc /usr/x86_64-w64-mingw32/bin/moc
37 ln -sf /usr/x86_64-w64-mingw32/lib/qt/bin/rcc /usr/x86_64-w64-mingw32/bin/rcc
38 QMAKE=/usr/x86_64-w64-mingw32/lib/qt/bin/qmake make
39 - name: Prepare redistributable directory
40 run: |
41 cd derived/bin
42 /usr/bin/x86_64-w64-mingw32-strip openmsx-debugger.exe
43 find /usr/x86_64-w64-mingw32 -name 'libbrotlicommon.dll' -exec cp {} . \;
44 find /usr/x86_64-w64-mingw32 -name 'libbrotlidec.dll' -exec cp {} . \;
45 find /usr/x86_64-w64-mingw32 -name 'libbz2-1.dll' -exec cp {} . \;
46 find /usr/x86_64-w64-mingw32 -name 'libfreetype-6.dll' -exec cp {} . \;
47 find /usr/x86_64-w64-mingw32 -name 'libgcc_s_seh-1.dll' -exec cp {} . \;
48 find /usr/x86_64-w64-mingw32 -name 'libglib-2.0-0.dll' -exec cp {} . \;
49 find /usr/x86_64-w64-mingw32 -name 'libgraphite2.dll' -exec cp {} . \;
50 find /usr/x86_64-w64-mingw32 -name 'libharfbuzz-0.dll' -exec cp {} . \;
51 find /usr/x86_64-w64-mingw32 -name 'libiconv-2.dll' -exec cp {} . \;
52 find /usr/x86_64-w64-mingw32 -name 'libintl-8.dll' -exec cp {} . \;
53 find /usr/x86_64-w64-mingw32 -name 'libpcre-1.dll' -exec cp {} . \;
54 find /usr/x86_64-w64-mingw32 -name 'libpcre2-16-0.dll' -exec cp {} . \;
55 find /usr/x86_64-w64-mingw32 -name 'libpng16-16.dll' -exec cp {} . \;
56 find /usr/x86_64-w64-mingw32 -name 'libssp-0.dll' -exec cp {} . \;
57 find /usr/x86_64-w64-mingw32 -name 'libstdc++-6.dll' -exec cp {} . \;
58 find /usr/x86_64-w64-mingw32 -name 'libwinpthread-1.dll' -exec cp {} . \;
59 find /usr/x86_64-w64-mingw32 -name 'Qt5Core.dll' -exec cp {} . \;
60 find /usr/x86_64-w64-mingw32 -name 'Qt5Gui.dll' -exec cp {} . \;
61 find /usr/x86_64-w64-mingw32 -name 'Qt5Network.dll' -exec cp {} . \;
62 find /usr/x86_64-w64-mingw32 -name 'Qt5Widgets.dll' -exec cp {} . \;
63 find /usr/x86_64-w64-mingw32 -name 'zlib1.dll' -exec cp {} . \;
64 mkdir platforms
65 cp -rp /usr/x86_64-w64-mingw32/lib/qt/plugins/platforms/qwindows.dll platforms/
66 tar cvf ../../openmsx-debugger-mingw32-${{ env.package_origin }}.zip .
67 - name: Upload redistributable package for Windows
68 uses: actions/upload-artifact@v3
69 with:
70 name: mingw32
71 path: |
72 openmsx-debugger-mingw32-${{ env.package_origin }}.zip
73 if-no-files-found: error
74 retention-days: 3
75