blob: cc4102c973c420656cd6a462b8abc0b5dd2ba69a [file] [log] [blame]
#!/bin/bash
# Copyright 2022 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
CCACHE_VERSION=4.7.4
curl --silent --show-error --fail --location \
"https://github.com/ccache/ccache/releases/download/v${CCACHE_VERSION}/ccache-${CCACHE_VERSION}-linux-x86_64.tar.xz" \
--output ccache.tar.xz \
"https://github.com/ccache/ccache/releases/download/v${CCACHE_VERSION}/ccache-${CCACHE_VERSION}-linux-x86_64.tar.xz.asc" \
--output ccache.tar.xz.asc \
"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x5a939a71a46792cf57866a51996dda075594adb8" \
--output JOEL_PUBKEY.asc
gpg --import JOEL_PUBKEY.asc
gpg --verify ccache.tar.xz.asc
tar -xvf ccache.tar.xz --strip-components=1
cp ccache /usr/bin/