-
Notifications
You must be signed in to change notification settings - Fork 61
68 lines (58 loc) · 1.71 KB
/
webassembly.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
name: webassembly
on:
push:
branches: [ main ]
paths:
- '.github/workflows/webassembly.yml'
- 'quard_star_tools/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/webassembly.yml'
- 'quard_star_tools/**'
workflow_dispatch:
jobs:
quard_star_tools_webassembly_build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install prerequisites
shell: bash -l {0}
run: |
sudo apt update
sudo apt install -y make gcc
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.6.0'
modules: 'qt5compat qtwebsockets qtmultimedia'
aqtversion: ==3.1.7
- name: Install Qt webassembly
uses: jurplel/install-qt-action@v4
with:
arch: wasm_singlethread
version: '6.6.0'
modules: 'qt5compat qtwebsockets qtmultimedia'
aqtversion: ==3.1.7
- name: Install emsdk
uses: mymindstorm/setup-emsdk@v14
with:
version: 3.1.25
actions-cache-folder: 'emsdk-cache'
- name: Build all
shell: bash -l {0}
env:
QT_VERSION: 6.6.0
run: |
cd quard_star_tools
git describe --always --long --abbrev=10 --exclude '*' | awk '{print "\""$0"\""}' > git_tag.inc
sed -i 's/git_tag.inc/git_tag.ci.inc/g' quard_star_tools.pro
lrelease quard_star_tools.pro
${QT_ROOT_DIR}/bin/qmake -makefile
make
- name: Upload build asserts
uses: actions/upload-artifact@v4
with:
name: quard_star_tools_webassembly
path: |
quard_star_tools/release/out