-
-
Notifications
You must be signed in to change notification settings - Fork 2
110 lines (109 loc) · 3.34 KB
/
mingw-windows.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: mingw-windows
on: push
jobs:
x86-windows-msys2-mingw32:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup msys2 with static qt
uses: msys2/setup-msys2@v2
with:
msystem: mingw32
install: mingw-w64-i686-toolchain make upx wget
- name: Install known working qt5-static library
shell: msys2 {0}
run: |
cd /tmp
wget https://repo.msys2.org/mingw/mingw32/mingw-w64-i686-qt5-static-5.15.13-1-any.pkg.tar.zst
pacman --noconfirm -U mingw-w64-i686-qt5-static-5.15.13-1-any.pkg.tar.zst
- name: Qmake build
shell: msys2 {0}
run: |
export PATH=/mingw32/qt5-static/bin/:$PATH
mkdir build && cd build
qmake -o Makefile ../Datacorn.pro
make release -j2
- name: Setup directory with artifacts
shell: msys2 {0}
run: |
export RDIR=Datacorn
mkdir $RDIR
upx -9 -o $RDIR/Datacorn.exe build/binary/Datacorn.exe
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Datacorn-mingw
path: Datacorn/
- name: Release
if: ${{ github.ref == 'refs/heads/master' }}
uses: svenstaro/upload-release-action@v2
with:
overwrite: true
asset_name: Datacorn-mingw.exe
prerelease: true
tag: |
latest
file: |
Datacorn/Datacorn.exe
x64-windows-msys2-mingw64-qt6:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup msys2 with static qt
uses: msys2/setup-msys2@v2
with:
msystem: mingw64
install: >-
mingw-w64-x86_64-qt6-static
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-pcre2
mingw-w64-x86_64-libmng
mingw-w64-x86_64-lcms2
mingw-w64-x86_64-libtiff
mingw-w64-x86_64-lerc
mingw-w64-x86_64-jbigkit
mingw-w64-x86_64-libjpeg-turbo
mingw-w64-x86_64-libdeflate
mingw-w64-x86_64-libwebp
mingw-w64-x86_64-libpng
mingw-w64-x86_64-glib2
mingw-w64-x86_64-graphite2
mingw-w64-x86_64-harfbuzz
mingw-w64-x86_64-freetype
mingw-w64-x86_64-brotli
mingw-w64-x86_64-libb2
make
upx
- name: Qmake build
shell: msys2 {0}
run: |
export PATH=/mingw64/qt6-static/bin/:$PATH
mkdir build && cd build
qmake QMAKE_LIBS+="-lgraphite2 -lbz2 -lusp10 -lRpcrt4" -o Makefile ../Datacorn.pro
make release -j2
- name: Setup directory with artifacts
shell: msys2 {0}
run: |
export RDIR=Datacorn
mkdir $RDIR
upx -9 -o $RDIR/Datacorn.exe build/binary/Datacorn.exe
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Datacorn-mingw-qt6
path: Datacorn/
- name: Release
if: ${{ github.ref == 'refs/heads/master' }}
uses: svenstaro/upload-release-action@v2
with:
overwrite: true
asset_name: Datacorn-mingw-qt6.exe
prerelease: true
tag: |
latest
file: |
Datacorn/Datacorn.exe