CI: Speedup web workflow
@@ -60,7 +60,9 @@ jobs:
for example in `find examples -maxdepth 1 -mindepth 1 -type d -printf "%f\n"` ; do
if [ -f "examples/$example/Cargo.toml" ]; then
echo "::group::Build $example example"
- wasm-pack build examples/$example --target web --out-name web --out-dir ../../pkg --dev
+ pushd examples/$example
+ CARGO_TARGET_DIR=../../target wasm-pack build --target web --out-name web --dev
+ popd
echo "::endgroup::"
fi
done
