-
-
Notifications
You must be signed in to change notification settings - Fork 93
94 lines (81 loc) · 2.31 KB
/
build-gui_win.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
name: Windows GUI
on:
push:
branches:
- master
- v2.2x
paths:
- '.github/workflows/build-gui.yml'
- 'gui/src/**'
pull_request:
branches:
- master
paths:
- '.github/workflows/build-gui.yml'
- 'gui/src/**'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
# - name: Cache Qt
# id: cache-qt
# uses: actions/cache@v3
# with:
# path: qt/
# key: ${{ runner.os }}-QtCache
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
aqtversion: '==3.1.*'
version: '6.4.1'
target: 'desktop'
arch: 'win64_mingw'
modules: 'qtserialport'
dir: '${{ github.workspace }}/qt'
install-deps: 'true'
cache: 'true'
cache-key-prefix: 'install-qt-action'
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: x64
static: 0
- name: Build
working-directory: ${{github.workspace}}
run: |
cd gui/src
dir
qmake HeadTracker.pro
mingw32-make
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true
# if: ${{ failure() }}
# timeout-minutes: 15
- name: WinDeployQT
working-directory: ${{github.workspace}}
run: |
mkdir output
cp gui/src/release/HeadTracker.exe output/
# cp gui/src/css/stylesheet.css output/
# cp gui/src/css/Background.svg output/
cd output
curl -L -o bossac.exe https://github.com/dlktdr/HeadTracker/raw/master/gui/bin/bossac.exe
windeployqt HeadTracker.exe
# Runs a set of commands using the runners shell
- name: Package Windows GUI
uses: 'actions/upload-artifact@v4'
id: artifact-upload-step
with:
name: headtracker_win
path: ${{github.workspace}}/output
retention-days: 90
if-no-files-found: error
- name: Output artifact ID
run: echo 'Artifact ID is ${{ steps.artifact-upload-step.outputs.artifact-id }}'