From d49a14ba3a6b0d0dcfa6b2f0fe764f446b51fbe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 6 Mar 2024 10:13:52 +0100 Subject: [PATCH] Release WASM / WASI build artifacts too --- .github/workflows/release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0fbc0af..fcc296b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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