✨ Add rust toolchain setup on rust scripts (#12237)

This commit is contained in:
Andrey Antukh 2026-10-09 09:54:55 +02:00 committed by GitHub
parent 3779dd99ae
commit 9b8dde2954
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
export RUST_VERSION=1.91.0
export VERSION_TAG=${VERSION:-develop};
if [ "$NODE_ENV" = "production" ]; then
@ -67,6 +69,9 @@ function clean {
}
function setup {
# Setup default rust version
rustup default $RUST_VERSION
rustup target add wasm32-unknown-emscripten
pnpm install;
}

View File

@ -9,6 +9,7 @@ pushd $_SCRIPT_DIR;
. ./_build_env
setup
cargo test --bin render_wasm -- --show-output
# Exit with the same status code as cargo test

View File

@ -6,6 +6,7 @@ pushd $_SCRIPT_DIR;
. ./_build_env
set -x
setup
build;
copy_artifacts "../frontend/resources/public/js";
copy_shared_artifact;