Release WASM / WASI build artifacts too
This commit is contained in:
parent
4d052a7e71
commit
d49a14ba3a
1 changed files with 19 additions and 0 deletions
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
|
@ -147,6 +147,25 @@ jobs:
|
|||
name: qjs
|
||||
path: build/*-windows-x86_64.exe
|
||||
|
||||
wasi:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: setup wasi-sdk
|
||||
run: |
|
||||
wget -nv https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-21/wasi-sdk_21.0_amd64.deb -P /tmp
|
||||
sudo apt install /tmp/wasi-sdk*.deb
|
||||
- name: build
|
||||
run: |
|
||||
cmake -B build -DCMAKE_TOOLCHAIN_FILE=/opt/wasi-sdk/share/cmake/wasi-sdk.cmake
|
||||
make -C build qjs_exe
|
||||
mv build/qjs build/qjs-wasi.wasm
|
||||
- name: upload
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: qjs
|
||||
path: build/qjs-wasi.wasm
|
||||
|
||||
upload-to-release:
|
||||
needs: [linux-x86, linux-x86_64, macos, windows-x86, windows-x86_64]
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in a new issue