Skip to content

Commit

Permalink
Update musl.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Oct 4, 2021
1 parent 396a998 commit e281fd0
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .buildkite/pipelines/main/upload_s3/musl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,7 @@ steps:
echo "--- Print the full and short commit hashes"
SHORT_COMMIT_LENGTH=10
SHORT_COMMIT=`echo $${BUILDKITE_COMMIT:?} | cut -c1-$${SHORT_COMMIT_LENGTH:?}`
JULIA_DIR="julia-$${SHORT_COMMIT:?}"
JULIA_BINARY="$${JULIA_DIR:?}/bin/julia"
ARTIFACT_FILE_EXTENSION="tar.gz"
ARTIFACT_FILENAME="julia-$${SHORT_COMMIT:?}-${PLATFORM?}${ARCH?}.$${ARTIFACT_FILE_EXTENSION:?}"
echo "The full commit is: $${BUILDKITE_COMMIT:?}"
echo "The short commit is: $${SHORT_COMMIT:?}"
echo "The artifact filename will be: $${ARTIFACT_FILENAME:?}"
echo "The Julia directory name will be: $${JULIA_DIR:?}"
echo "The Julia binary will be: $${JULIA_BINARY:?}"
ARTIFACT_FILENAME="julia-$${SHORT_COMMIT:?}-musl64.tar.gz"
echo "--- Download build artifacts"
rm -rf $${ARTIFACT_FILENAME:?}
Expand All @@ -30,9 +22,9 @@ steps:
echo "--- Upload build artifacts to S3"
# Upload to the following URL:
# https://julialangnightlies-s3.julialang.org/bin/linux/x64/julia-latest-musl64.tar.gz
export NEW_ARTIFACT_FILENAME="julia-latest-musl64.tar.gz"
export BUILDKITE_ARTIFACT_UPLOAD_DESTINATION="s3://julialangnightlies-s3/bin/linux/x64"
export BUILDKITE_S3_DEFAULT_REGION="us-east-1"
export NEW_ARTIFACT_FILENAME="julia-latest-musl64.tar.gz"
if [[ "$${ARTIFACT_FILENAME:?}" != "$${NEW_ARTIFACT_FILENAME:?}" ]]; then
mv $${ARTIFACT_FILENAME:?} $${NEW_ARTIFACT_FILENAME:?}
fi
Expand Down

0 comments on commit e281fd0

Please sign in to comment.