From ac1b63e8a6e217f578ea74925d56e1a499873a2a Mon Sep 17 00:00:00 2001 From: Teakowa Date: Tue, 20 Oct 2026 19:36:02 +0800 Subject: [PATCH] ci: gate the parser and catalog library on a WebAssembly build Run cargo check for wasm32-unknown-unknown on workshop-rs --lib so a native-only dependency fails CI. Fixes #519 --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0bac81..b1096a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,6 +72,22 @@ jobs: - name: Catalog check run: cargo run --locked -p workshop-rs --bin workshop-catalog-gen -- check + wasm-check: + name: WebAssembly build + needs: check + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v7 + - name: Set up Rust + uses: wrightkit/.github/.github/actions/setup-rust@main + with: + toolchain: 1.88.0 + targets: wasm32-unknown-unknown + cache-shared-key: quality + - name: Check the parser and catalog library for WebAssembly + run: cargo check --locked -p workshop-rs --lib --target wasm32-unknown-unknown + real-project-scenarios: name: five real-project scenarios needs: check