Skip to content

Commit

Permalink
Add sccache to F40 worker
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Müller <[email protected]>
  • Loading branch information
Marcus Müller committed Aug 30, 2024
1 parent 23e7744 commit 4ec856c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
17 changes: 15 additions & 2 deletions ci/ci-fedora-40-3.10/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down Expand Up @@ -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"
8 changes: 8 additions & 0 deletions ci/ci-fedora-40-3.10/config
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 4ec856c

Please sign in to comment.