From 7f7b32ec044c35107daa169655941dd0455a1f8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20M=C3=BCller?= Date: Fri, 30 Aug 2024 11:32:11 +0200 Subject: [PATCH] Add sccache to F40 worker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcus Müller --- ci/ci-fedora-40-3.10/Dockerfile | 17 +++++++++++++++-- ci/ci-fedora-40-3.10/config | 8 ++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 ci/ci-fedora-40-3.10/config diff --git a/ci/ci-fedora-40-3.10/Dockerfile b/ci/ci-fedora-40-3.10/Dockerfile index fdcd449..e80359c 100644 --- a/ci/ci-fedora-40-3.10/Dockerfile +++ b/ci/ci-fedora-40-3.10/Dockerfile @@ -1,7 +1,7 @@ FROM fedora:40 -LABEL maintainer="martin@gnuradio.org" +LABEL maintainer="mmueller@gnuradio.org" -ENV security_updates_as_of 2024-04-23 +ENV security_updates_as_of 2024-08-29 # Build RUN dnf install --refresh -y \ @@ -84,3 +84,16 @@ RUN mkdir -p /src/build && \ make install && \ cd / && \ rm -rf /src/ + +# "Install" sccache +RUN mkdir /tmp/sccache/ \ + && curl -L https://github.com/mozilla/sccache/releases/download/v0.8.1/sccache-v0.8.1-x86_64-unknown-linux-musl.tar.gz > /tmp/sccache.tgz \ + && cd /tmp/sccache \ + && tar xf /tmp/sccache.tgz \ + && cp */sccache /usr/bin \ + && rm -rf /tmp/sccache.tgz /tmp/sccache \ + && mkdir -p /etc/sccache/ +COPY config /etc/sccache/config +ENV SCCACHE_CONF="/etc/sccache/config" +# anything works, but needs to be set: +ENV AWS_REGION="non-AWS" diff --git a/ci/ci-fedora-40-3.10/config b/ci/ci-fedora-40-3.10/config new file mode 100644 index 0000000..b351e65 --- /dev/null +++ b/ci/ci-fedora-40-3.10/config @@ -0,0 +1,8 @@ +[cache.s3] +use_ssl = true +no_credentials = false +server_side_encryption = false +## Needs to be passed from CI as Env var +# bucket = "sccache" +# endpoint = "s3.us-west-002.backblazeb2.com" +# Also need to pass AWS credentials as env vars (from GH secrets)