From 05e97c3cfd7f29883d66a7b34723e6d16a505103 Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Wed, 24 Apr 2024 16:51:00 -0700 Subject: [PATCH] chore(dev): Bump down zstd-sys from 2.0.10 to 2.0.9 To fix a WASM build issue. We can upgrade again once https://github.com/gyscos/zstd-rs/pull/274 is merged and released (or https://github.com/gyscos/zstd-rs/issues/271 is otherwise fixed). Also add a test that builds the playground to catch this sort of regression in the future. Signed-off-by: Jesse Szwedko --- .github/workflows/test.yml | 6 ++++++ scripts/environment/prepare.sh | 2 ++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1201184f1c986..8da19b35732b5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -123,6 +123,12 @@ jobs: if: needs.changes.outputs.source == 'true' || needs.changes.outputs.cue == 'true' run: cargo vdev test-vrl + - name: Build VRL Playground + if: needs.changes.outputs.source == 'true' || needs.changes.outputs.dependencies == 'true' + run: | + cd lib/vector-vrl/web-playground/ + wasm-pack build --target web --out-dir public/pkg + # This is a required status check, so it always needs to run if prior jobs failed, in order to mark the status correctly. all-checks: name: Test Suite diff --git a/scripts/environment/prepare.sh b/scripts/environment/prepare.sh index 369bee8e2cae4..3534e34def1de 100755 --- a/scripts/environment/prepare.sh +++ b/scripts/environment/prepare.sh @@ -21,6 +21,8 @@ if ! dd-rust-license-tool --help >& /dev/null ; then rustup run stable cargo install dd-rust-license-tool --version 1.0.2 --force --locked fi +./scripts/ensure-wasm-pack-installed.sh + # Currently fixing this to version 0.30 since version 0.31 has introduced # a change that means it only works with versions of node > 10. # https://github.com/igorshubovych/markdownlint-cli/issues/258