added sccache to gitea image
All checks were successful
CI / Build arch-builder docker images (push) Successful in 7m12s
CI / Build nginx docker images (push) Successful in 1m57s

This commit is contained in:
2025-07-18 16:41:49 +08:00
parent 721923a0ca
commit 263d267ac9
2 changed files with 7 additions and 4 deletions

View File

@@ -109,15 +109,18 @@ RUN rustup target add \
wasm32-wasip2
FROM base AS gitea_act_runner
RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed nodejs npm docker docker-buildx btrfs-progs hidapi protobuf rustup llvm clang trunk emscripten
RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed gitea-act-runner jdk21-graalvm-bin jdk23-graalvm-bin jdk21-graalvm-ce-bin jdk23-graalvm-ce-bin
RUN --mount=type=bind,source=woggioni.net.ca.pem,target=/root.pem trust anchor root.pem
RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed nodejs npm docker docker-buildx btrfs-progs hidapi protobuf rustup llvm clang trunk emscripten sccache
RUN --mount=type=cache,target=/var/cache/pacman pacman -S --noconfirm --needed gitea-act-runner jdk21-graalvm-bin jdk23-graalvm-bin jdk21-graalvm-ce-bin jdk23-graalvm-ce-bin
RUN usermod -a luser -G docker
USER luser
WORKDIR /home/luser
COPY --chown=1000:1000 config.toml /home/luser/.cargo/config.toml
COPY --chown=1000:1000 sccache_config.toml /home/luser/.config/sccache/config
RUN rustup update
RUN rustup toolchain install stable-x86_64-unknown-linux-gnu --profile minimal
RUN rustup component add rustfmt
RUN rustup component add clippy
RUN rustup target add \
x86_64-unknown-linux-musl \
x86_64-unknown-linux-gnu \

View File

@@ -19,5 +19,5 @@ opt-level = 3
lto = true
strip = true
#[build]
#rustc-wrapper = "/usr/sbin/sccache"
[build]
rustc-wrapper = "/usr/bin/sccache"