Skip to content

Commit f92c917

Browse files
committed
Add CI to build wasm
1 parent 0a58280 commit f92c917

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/wasm.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: wasm
2+
3+
on:
4+
push:
5+
#schedule:
6+
# - cron: '*/120 8-18 * * *' # every 2 hours from 8:00 to 18:00 every day
7+
8+
jobs:
9+
build: # the first job
10+
# current job matrix. if modified, remember to UPDATE the strategy in the next job
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-22.04]
15+
16+
runs-on: ${{ matrix.os }}
17+
18+
timeout-minutes: 30
19+
20+
steps: # job steps
21+
- name: Check-out repository
22+
uses: actions/checkout@v4
23+
24+
- name: Install emsdk
25+
if: False
26+
shell: bash
27+
run: |
28+
git clone https://github.com/emscripten-core/emsdk.git
29+
cd emsdk
30+
git pull
31+
./emsdk install 3.1.50 # this version is needed for Qt 6.7
32+
./emsdk activate 3.1.50
33+
34+
- name: Install Qt for WebAssembly
35+
shell: bash
36+
run: |
37+
curl -L -O https://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run
38+
ls -l
39+
chmod u+x qt-unified-linux-x64-online.run
40+
# curl -L -O https://download.qt.io/official_releases/online_installers/qt-unified-linux-arm64-online.run
41+
# ./qt-unified-linux-arm64-online.run \
42+
# --root /home/runner/Qt \
43+
# --accept-licenses \
44+
# --accept-obligations \
45+
# --default-answer \
46+
# --confirm-command \
47+
# install qt.qt6.672.wasm_singlethread qt.qt6.672.qt5compat
48+
49+
- name: Install Qt for WebAssembly
50+
shell: bash
51+
run: |
52+
./qt-unified-linux-x64-online.run

0 commit comments

Comments
 (0)