-
-
Notifications
You must be signed in to change notification settings - Fork 2
140 lines (138 loc) · 3.94 KB
/
x86-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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name: x86-windows
on: push
jobs:
x86-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Download prebuilt qt 5.6
shell: bash
run: |
mkdir C:/Qt
cd C:/Qt
curl --retry 5 --connect-timeout 30 --location --remote-header-name --output qt.7z https://github.com/xavery/qt563xp/releases/download/1.2/Qt-5.6.3-Static-XP.7z
7z x qt.7z
rm qt.7z
- name: Set x86 windows build tools as default
uses: ilammy/msvc-dev-cmd@v1
with:
arch: win32
toolset: 14.16
- name: Make v141_xp toolset v141
shell: bash
run: |
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v150\Platforms\Win32\PlatformToolsets"
rm -r v141 || true
mv v141_xp v141
- name: Qmake build
shell: cmd
run: |
set PATH=C:\Qt\5.6.3-Static-XP\bin;%PATH%
mkdir build && cd build
qmake -o Makefile ../Datacorn.pro
set CL=/MP
nmake release
- name: Setup directory with artifacts
shell: bash
run: |
export RDIR=Datacorn
mkdir $RDIR
cp build/binary/Datacorn.exe $RDIR/
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Datacorn
path: Datacorn/
- name: Release
if: ${{ github.ref == 'refs/heads/master' }}
uses: svenstaro/upload-release-action@v2
with:
overwrite: true
asset_name: Datacorn.exe
prerelease: true
tag: |
latest
file: |
Datacorn/Datacorn.exe
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-qt5-static mingw-w64-i686-toolchain make upx
- 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
x86-windows-msys2-mingw32-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: mingw32
install: mingw-w64-i686-qt6-static mingw-w64-i686-toolchain make upx
- name: Qmake build
shell: msys2 {0}
run: |
export PATH=/mingw32/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
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