Skip to content

Commit db7f287

Browse files
committed
ci: add web assembly
1 parent bab268c commit db7f287

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/web_build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Web CI
2+
3+
on:
4+
release:
5+
types: [published]
6+
push:
7+
branches: ['main']
8+
pull_request:
9+
workflow_dispatch:
10+
11+
jobs:
12+
web-build:
13+
name: Build for the web
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: '0'
19+
20+
# NOTE: meson has no dependencies, so --break-system-packages doesn't really break anything!
21+
- name: Setup Meson
22+
run: |
23+
pip install meson --break-system-packages
24+
25+
- name: Install dependencies
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install ninja-build pkg-config build-essential wabt -y --no-install-recommends
29+
30+
- name: Build
31+
run: |
32+
bash ./platforms/build-web.sh
33+
meson test -C build-web
34+
35+
# TODO upload page to gh-pages!
36+
- name: Upload artifacts
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: oopetris-assets
40+
path: build-web/src/executables/

0 commit comments

Comments
 (0)