Skip to content

Commit

Permalink
skip install sccache on unsupported arch
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb70289 committed Sep 26, 2022
1 parent 610a66b commit 3f6d586
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/scripts/install_sccache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ PREFIX=$2
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 3f6d586

Please sign in to comment.