Skip to content

Commit 2d4022b

Browse files
authored
Preinstall rapidsai/sccache (#334)
1 parent 6f3f150 commit 2d4022b

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

ci-conda.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ ENV PATH=/opt/conda/bin:$PATH
1515
SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
1616

1717
# Install latest gha-tools to miniforge for unbuntu
18+
ARG SCCACHE_VER=notset
1819
RUN <<EOF
1920
i=0; until apt-get update -y; do ((++i >= 5)) && break; sleep 10; done
2021
apt-get install -y --no-install-recommends wget
2122
wget -q https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz -O - | tar -xz -C /usr/local/bin
23+
SCCACHE_VERSION="${SCCACHE_VER}" rapids-install-sccache
2224
apt-get purge -y wget && apt-get autoremove -y
2325
rm -rf /var/lib/apt/lists/*
2426
EOF
@@ -63,18 +65,21 @@ esac
6365
EOF
6466

6567
# Install latest gha-tools
68+
ARG SCCACHE_VER=notset
6669
RUN <<EOF
6770
case "${LINUX_VER}" in
6871
"ubuntu"*)
6972
i=0; until apt-get update -y; do ((++i >= 5)) && break; sleep 10; done
7073
apt-get install -y --no-install-recommends wget
7174
wget -q https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz -O - | tar -xz -C /usr/local/bin
75+
SCCACHE_VERSION="${SCCACHE_VER}" rapids-install-sccache
7276
apt-get purge -y wget && apt-get autoremove -y
7377
rm -rf /var/lib/apt/lists/*
7478
;;
7579
"rockylinux"*)
7680
dnf install -y wget
7781
wget -q https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz -O - | tar -xz -C /usr/local/bin
82+
SCCACHE_VERSION="${SCCACHE_VER}" rapids-install-sccache
7883
dnf remove -y wget
7984
dnf clean all
8085
;;

ci-wheel.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,21 @@ esac
4646
EOF
4747

4848
# Install latest gha-tools
49+
ARG SCCACHE_VER=notset
4950
RUN <<EOF
5051
case "${LINUX_VER}" in
5152
"ubuntu"*)
5253
i=0; until apt-get update -y; do ((++i >= 5)) && break; sleep 10; done
5354
apt-get install -y --no-install-recommends wget
5455
wget -q https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz -O - | tar -xz -C /usr/local/bin
56+
SCCACHE_VERSION="${SCCACHE_VER}" rapids-install-sccache
5557
apt-get purge -y wget && apt-get autoremove -y
5658
rm -rf /var/lib/apt/lists/*
5759
;;
5860
"rockylinux"*)
5961
dnf install -y wget
6062
wget -q https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz -O - | tar -xz -C /usr/local/bin
63+
SCCACHE_VERSION="${SCCACHE_VER}" rapids-install-sccache
6164
dnf remove -y wget
6265
dnf clean all
6366
;;

versions.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ YQ_VER: 4.49.2
1010
AWS_CLI_VER: 2.28.1
1111
# renovate: datasource=docker depName=condaforge/miniforge3 versioning=docker
1212
MINIFORGE_VER: 25.9.1-0
13+
# renovate: datasource=github-releases depName=rapidsai/sccache
14+
SCCACHE_VER: 0.12.0-rapids.28

0 commit comments

Comments
 (0)