-
Notifications
You must be signed in to change notification settings - Fork 67
60 lines (48 loc) · 1.45 KB
/
windows-release.yaml
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: Windows Release
on:
push:
branches:
- 'trunk'
tags:
- 'v*'
defaults:
run:
shell: cmd
env:
PROG: cubiomes-viewer
SOURCE_DIR: ${{github.workspace}}
jobs:
build:
runs-on: windows-2019
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: '5.15.2'
host: 'windows'
target: 'desktop'
arch: 'win64_mingw81'
archives: 'x86_64 qtbase qttools'
cache: true
setup-python: false
- name: Build
working-directory: ${{env.SOURCE_DIR}}
run: |
qmake CONFIG+=release ${{env.SOURCE_DIR}}
mingw32-make
- name: Deploy
working-directory: ${{env.SOURCE_DIR}}
run: |
mkdir ${{env.PROG}}
copy ${{env.SOURCE_DIR}}\release\${{env.PROG}}.exe ${{env.PROG}}
windeployqt --dir ${{env.PROG}} ${{env.SOURCE_DIR}}\release\${{env.PROG}}.exe --compiler-runtime --no-translations --no-system-d3d-compiler --no-opengl-sw --no-angle
- name: Save build artifact
uses: actions/upload-artifact@v4
with:
name: ${{env.PROG}}-${{github.ref_name}}-win
path: ${{env.SOURCE_DIR}}\${{env.PROG}}