Skip to content

Commit 50b73f0

Browse files
committed
CI: release workflow -- test, build wasm, attach to tagged release
1 parent 9c5bdb0 commit 50b73f0

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release playground
2+
3+
on:
4+
push:
5+
tags: ["playground-v*"]
6+
7+
permissions:
8+
contents: write # gh release create
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
# llvm-18-dev for the native build (codegen links libLLVM);
17+
# unsuffixed llvm/clang for the harness's llvm-as + clang++ calls.
18+
- name: Install LLVM toolchain
19+
run: |
20+
sudo apt-get update -q
21+
sudo apt-get install -y -q llvm-18-dev llvm clang
22+
23+
# The full suite, including the differential printer-vs-LLVM checks.
24+
# No green, no release.
25+
- name: Build and test
26+
run: make && make test
27+
28+
- name: Install Emscripten
29+
run: |
30+
git clone -q --depth 1 https://github.com/emscripten-core/emsdk.git ../emsdk
31+
../emsdk/emsdk install latest
32+
../emsdk/emsdk activate latest
33+
34+
- name: Build wasm
35+
run: source ../emsdk/emsdk_env.sh && make wasm
36+
37+
- name: Create release
38+
env:
39+
GH_TOKEN: ${{ github.token }}
40+
run: |
41+
gh release create "$GITHUB_REF_NAME" \
42+
build/compiler.js build/compiler.wasm \
43+
--title "$GITHUB_REF_NAME" \
44+
--notes "ce_compile wasm build from ${GITHUB_SHA::7}. Suite green (incl. differential IR checks)."

0 commit comments

Comments
 (0)