mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 05:50:35 +00:00
✨ Add rust toolchain setup on rust scripts (#12237)
This commit is contained in:
parent
3779dd99ae
commit
9b8dde2954
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -6,6 +6,7 @@ pushd $_SCRIPT_DIR;
|
||||
. ./_build_env
|
||||
|
||||
set -x
|
||||
setup
|
||||
build;
|
||||
copy_artifacts "../frontend/resources/public/js";
|
||||
copy_shared_artifact;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user