Skip to content

Commit aa451b4

Browse files
committed
Add emscripten build job.
1 parent 39497ab commit aa451b4

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/emscripten.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: emscripten
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
container: archlinux:base-devel
13+
steps:
14+
- name: Install dependencies
15+
run: pacman -Syu --noconfirm && pacman -S --noconfirm --needed cmake git unzip python ninja
16+
- name: Setup emscripten
17+
uses: mymindstorm/setup-emsdk@v14
18+
with:
19+
version: 3.1.67
20+
- uses: actions/checkout@v4
21+
- name: Profiler GUI
22+
run: |
23+
cmake -G Ninja -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_TOOLCHAIN_FILE=${{env.EMSDK}}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
24+
cmake --build profiler/build --parallel
25+
- name: Compress artifacts
26+
run: |
27+
gzip -9 profiler/build/tracy-profiler.js profiler/build/tracy-profiler.wasm
28+
- name: Find Artifacts
29+
id: find_artifacts
30+
run: |
31+
mkdir -p bin
32+
cp profiler/build/index.html bin
33+
cp profiler/build/tracy-profiler.data bin
34+
cp profiler/build/tracy-profiler.js.gz bin
35+
cp profiler/build/tracy-profiler.wasm.gz bin
36+
- uses: actions/upload-artifact@v4
37+
with:
38+
name: emscripten
39+
path: bin

0 commit comments

Comments
 (0)