-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (66 loc) · 2.27 KB
/
windows-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Windows Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.15.2'
host: 'windows'
target: 'desktop'
arch: 'win64_mingw81'
archives: 'x86_64 qtsvg qtbase'
cache: 'true'
- uses: actions/checkout@v3
- name: qmake
run: qmake
- name: make
run: make -j5
- name: Archive compiled binary
uses: actions/upload-artifact@v4
with:
name: binary
path: release/wordsearchcreator.exe
- name: Collect files for distribution
run: |
mkdir dist\plugins\platforms\
mkdir dist\plugins\styles\
cp COPYING .\dist\
cp .\release\wordsearchcreator.exe .\dist\Word` Search` Creator.exe
cp ..\Qt\5.15.2\mingw81_64\bin\Qt5Gui.dll .\dist\
cp ..\Qt\5.15.2\mingw81_64\bin\Qt5Core.dll .\dist\
cp ..\Qt\5.15.2\mingw81_64\bin\Qt5Network.dll .\dist\
cp ..\Qt\5.15.2\mingw81_64\bin\Qt5Widgets.dll .\dist\
cp ..\Qt\5.15.2\mingw81_64\bin\Qt5PrintSupport.dll .\dist\
cp ..\Qt\5.15.2\mingw81_64\bin\Qt5Svg.dll .\dist\
cp ..\Qt\5.15.2\mingw81_64\bin\Qt5Xml.dll .\dist\
cp C:\mingw64\bin\libgcc_s_seh-1.dll .\dist\
cp C:\mingw64\bin\libstdc++-6.dll .\dist\
cp C:\mingw64\bin\libwinpthread-1.dll .\dist\
cp ..\Qt\5.15.2\mingw81_64\plugins\platforms\qwindows.dll .\dist\plugins\platforms\
cp ..\Qt\5.15.2\mingw81_64\plugins\styles\qwindowsvistastyle.dll .\dist\plugins\styles\
cp .\fonts\*.ttf .\dist\
- name: Archive dist directory
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
- name: Build installer
run: |
cp wscinstaller.nsi .\dist\
cp FileAssociation.nsh .\dist\
cp .\dist\plugins\platforms\qwindows.dll .\dist\
cp .\dist\plugins\styles\qwindowsvistastyle.dll .\dist\
cd dist
makensis.exe wscinstaller.nsi
- name: Archive installer
uses: actions/upload-artifact@v4
with:
name: installer
path: dist/Word Search Creator 1.2 Installer.exe