From 2bb353e58feff79e97ce58daf139cec97a0da20a Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Tue, 25 Mar 2025 12:23:56 +0530 Subject: [PATCH] fix(ci): use CARGO_HOME instead of hardcoded path in build scripts --- scripts/build.sh | 4 ++-- scripts/prebuild.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index eb5ed345..6f0b4620 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -42,7 +42,7 @@ if [[ "$env_source" != "true" ]]; then exit 1 fi -source "$HOME/.cargo/env" +source "$CARGO_HOME/env" # We publish the artifacts into a local Maven repository instead of using the # auto-publication workflow because the latter does not work for Gradle @@ -134,4 +134,4 @@ if [[ "$build_type" == "apk" ]]; then elif [[ "$build_type" == "bundle" ]]; then gradle :app:bundleRelease -Paab fi -popd \ No newline at end of file +popd diff --git a/scripts/prebuild.sh b/scripts/prebuild.sh index 5aa0ff2a..e796adec 100755 --- a/scripts/prebuild.sh +++ b/scripts/prebuild.sh @@ -114,7 +114,7 @@ fi echo "...libclang dir set to ${libclang}" # shellcheck disable=SC1090,SC1091 -source "$HOME/.cargo/env" +source "$CARGO_HOME/env" rustup default 1.83.0 rustup target add thumbv7neon-linux-androideabi rustup target add armv7-linux-androideabi