From 4f7733a7ff7ea1714cbb099253dc6cce84e63678 Mon Sep 17 00:00:00 2001 From: Andrew Duffy Date: Thu, 5 Dec 2024 17:30:14 -0500 Subject: [PATCH] add wasm CI build --- .github/workflows/wasm.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/wasm.yml diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml new file mode 100644 index 0000000000..d1a183fa92 --- /dev/null +++ b/.github/workflows/wasm.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [ "develop" ] + pull_request: { } + workflow_dispatch: { } + +permissions: + actions: read + contents: read + checks: write # audit-check creates checks + issues: write # audit-check creates issues + +env: + CARGO_TERM_COLOR: always + RUST_BACKTRACE: 1 + +jobs: + build: + name: "build for wasm32-wasip1" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/cleanup + - uses: rui314/setup-mold@v1 + - uses: ./.github/actions/setup-rust + - uses: jetli/wasm-pack-action@v0.4.0 + with: + # Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest') + version: 'latest' + - name: build for wasm32-wasip1 target + working-directory: ./vortex-wasm + run: | + echo 'building Rust + TS, making sure it completes with success' + npm run build + +