fix(ci): use CARGO_HOME instead of hardcoded path in build scripts

This commit is contained in:
Akash Yadav
2025-03-25 12:23:56 +05:30
parent 7271da64c0
commit 2bb353e58f
2 changed files with 3 additions and 3 deletions

View File

@@ -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
popd

View File

@@ -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