From 4df780391c0cbb87b12812d0249ed9b62e2740e4 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Sun, 27 Oct 2024 15:06:22 -0700 Subject: [PATCH] Fix Bezier-rs web demos failing to run wasm-opt in CI --- website/other/bezier-rs-demos/wasm/Cargo.toml | 2 +- website/other/build.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/website/other/bezier-rs-demos/wasm/Cargo.toml b/website/other/bezier-rs-demos/wasm/Cargo.toml index 1d746e38ae..e3f5a29fd8 100644 --- a/website/other/bezier-rs-demos/wasm/Cargo.toml +++ b/website/other/bezier-rs-demos/wasm/Cargo.toml @@ -37,7 +37,7 @@ demangle-name-section = true dwarf-debug-info = true [package.metadata.wasm-pack.profile.release] -wasm-opt = ["-Oz"] +wasm-opt = ["-Oz", "--enable-bulk-memory"] [package.metadata.wasm-pack.profile.release.wasm-bindgen] debug-js-glue = false diff --git a/website/other/build.sh b/website/other/build.sh index 433369c185..86be2fcf0d 100644 --- a/website/other/build.sh +++ b/website/other/build.sh @@ -1,4 +1,5 @@ #!/bin/sh +set -e # Exit with nonzero exit code if any individual command fails throughout the script echo 📁 Create output directory in 'website/other/dist' cd website/other