From 156e09536eb3ddeaa842c72961a5cf932511985e Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 14 Jan 2023 04:46:51 +0100 Subject: [PATCH] Add workaround for wasm-pack bug to fix the playground CI (#1861) Fixes #1860. --- .github/workflows/playground.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/playground.yaml b/.github/workflows/playground.yaml index 2d01bd4462..54f26b6ce9 100644 --- a/.github/workflows/playground.yaml +++ b/.github/workflows/playground.yaml @@ -31,7 +31,8 @@ jobs: - uses: jetli/wasm-pack-action@v0.4.0 - uses: jetli/wasm-bindgen-action@v0.2.0 - name: "Run wasm-pack" - run: wasm-pack build --target web --out-dir playground/src/pkg + run: ln -s . ruff # HACK because `wasm-pack build` doesn't support our crate structure (see https://github.com/rustwasm/wasm-pack/issues/1211) + run: wasm-pack build --target web --out-dir playground/src/pkg -p ruff - name: "Install Node dependencies" run: npm ci working-directory: playground