Merge pull request #629 from tgross35/fix-script

Fix unset variables in the build script
This commit is contained in:
Amanieu d'Antras 2024-06-22 16:20:27 +02:00 committed by GitHub
commit cdd0084cfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,10 +41,10 @@ run() {
export RUST_COMPILER_RT_ROOT=./compiler-rt
fi
if [ "$GITHUB_ACTIONS" = "true" ]; then
if [ "${GITHUB_ACTIONS:-}" = "true" ]; then
# Enable Docker image caching on GHA
buildx="buildx"
build_cmd=("buildx" "build")
build_args=(
"--cache-from" "type=local,src=/tmp/.buildx-cache"
"--cache-to" "type=local,dest=/tmp/.buildx-cache-new"
@ -53,7 +53,7 @@ run() {
)
fi
docker "${buildx:-}" build \
docker ${build_cmd[@]:-build} \
-t "builtins-$target" \
${build_args[@]:-} \
"ci/docker/$target"