Skip to content

Commit

Permalink
Work around tar compression bug on OSX
Browse files Browse the repository at this point in the history
This is needed to fix the CI on recent OSX systems. For reference, see rust-lang/cargo#8603.
  • Loading branch information
drgora committed Apr 12, 2023
1 parent 3b845c5 commit 293b40a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/ci-horizen/scripts/common/push_archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ FOLDERNAME="$1"
FILENAME="$2"

if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
# work around the "mac os tar bug", e.g. https://github.com/rust-lang/cargo/issues/8603
sudo /usr/sbin/purge
bash -c "${TRAVIS_BUILD_DIR}/contrib/ci-horizen/scripts/common/b2_compress_checksum_upload.sh $FOLDERNAME $FILENAME"
else
docker run --rm -v "${TRAVIS_BUILD_DIR}:/mnt/build" -e LOCAL_USER_ID="$(id -u)" -e LOCAL_GRP_ID="$(id -g)" --env-file <(env | grep 'DOCKER_\|B2_\|TRAVIS_') "${IMAGE_NAME}:${IMAGE_TAG}" \
Expand Down

0 comments on commit 293b40a

Please sign in to comment.