Release WASM / WASI build artifacts too

This commit is contained in:
Saúl Ibarra Corretgé 2024-03-06 10:13:52 +01:00
parent 4d052a7e71
commit d49a14ba3a

View file

@ -147,6 +147,25 @@ jobs:
name: qjs name: qjs
path: build/*-windows-x86_64.exe 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: upload-to-release:
needs: [linux-x86, linux-x86_64, macos, windows-x86, windows-x86_64] needs: [linux-x86, linux-x86_64, macos, windows-x86, windows-x86_64]
runs-on: ubuntu-latest runs-on: ubuntu-latest