-
-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (58 loc) · 1.63 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
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