Skip to content

Commit

Permalink
ARROW-17773: [CI][C++] Fix sccache error on Travis-CI Arm64 build (#1…
Browse files Browse the repository at this point in the history
…4201)

Authored-by: Yibo Cai <yibo.cai@arm.com>
Signed-off-by: Yibo Cai <yibo.cai@arm.com>
  • Loading branch information
cyb70289 committed Sep 28, 2022
1 parent 83ad54c commit d4f6088
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions ci/scripts/install_sccache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,20 @@
set -e

if [ "$#" -lt 1 -o "$#" -gt 3 ]; then
echo "Usage: $0 <build> <prefix> <arch> <version>"
echo "Will default to arch=x86_64 and version=0.3.0 "
echo "Usage: $0 <build> <prefix> <version>"
echo "Will default to version=0.3.0 "
exit 1
fi

BUILD=$1
PREFIX=$2
ARCH=${3:-x86_64}
VERSION=${4:-0.3.0}
VERSION=${3:-0.3.0}
ARCH=$(uname -m)

if [ "${ARCH}" != x86_64 ] && [ "${ARCH}" != aarch64 ]; then
echo "Skipped sccache installation on unsupported arch: ${ARCH}"
exit 0
fi

SCCACHE_URL="https://github.com/mozilla/sccache/releases/download/v$VERSION/sccache-v$VERSION-$ARCH-$BUILD.tar.gz"
SCCACHE_ARCHIVE=sccache.tar.gz
Expand Down

0 comments on commit d4f6088

Please sign in to comment.