Skip to content

Commit d49a14b

Browse files
committed
Release WASM / WASI build artifacts too
1 parent 4d052a7 commit d49a14b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/release.yml

+19
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,25 @@ jobs:
147147
name: qjs
148148
path: build/*-windows-x86_64.exe
149149

150+
wasi:
151+
runs-on: ubuntu-latest
152+
steps:
153+
- uses: actions/checkout@v4
154+
- name: setup wasi-sdk
155+
run: |
156+
wget -nv https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-21/wasi-sdk_21.0_amd64.deb -P /tmp
157+
sudo apt install /tmp/wasi-sdk*.deb
158+
- name: build
159+
run: |
160+
cmake -B build -DCMAKE_TOOLCHAIN_FILE=/opt/wasi-sdk/share/cmake/wasi-sdk.cmake
161+
make -C build qjs_exe
162+
mv build/qjs build/qjs-wasi.wasm
163+
- name: upload
164+
uses: actions/upload-artifact@v3
165+
with:
166+
name: qjs
167+
path: build/qjs-wasi.wasm
168+
150169
upload-to-release:
151170
needs: [linux-x86, linux-x86_64, macos, windows-x86, windows-x86_64]
152171
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)