Skip to content

Commit

Permalink
Update ccache.
Browse files Browse the repository at this point in the history
  • Loading branch information
stellaraccident committed Jan 24, 2024
1 parent 66d8950 commit 1f22e79
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
19 changes: 19 additions & 0 deletions build_tools/install_ccache.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/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

set -euo pipefail

CCACHE_VERSION="$1"

ARCH="$(uname -m)"

curl --silent --fail --show-error --location \
"https://github.com/ccache/ccache/releases/download/v${CCACHE_VERSION}/ccache-${CCACHE_VERSION}-linux-${ARCH}.tar.xz" \
--output ccache.tar.xz

tar xf ccache.tar.xz
cp ccache-${CCACHE_VERSION}-linux-${ARCH}/ccache /usr/local/bin
8 changes: 7 additions & 1 deletion dockerfiles/manylinux_ghr_x86_64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,19 @@ RUN chmod +x /token.sh /entrypoint.sh /app_token.sh
# Note that the actions-runner install script does yum transactions.
RUN yum install -y epel-release && \
yum install -y dumb-init jq && \
yum install -y ccache ninja-build clang lld && \
yum install -y ninja-build clang lld && \
yum install -y capstone-devel tbb-devel libzstd-devel && \
yum install -y boost-devel && \
/actions-runner/install_actions.sh ${GH_RUNNER_VERSION} ${TARGETPLATFORM} && \
yum clean all && \
rm -rf /var/cache/yum

######## CCache ########
WORKDIR /install-ccache

COPY build_tools/install_ccache.sh ./
RUN ./install_ccache.sh "4.9" && rm -rf /install-ccache

######## CMake ########
WORKDIR /install-cmake

Expand Down

0 comments on commit 1f22e79

Please sign in to comment.