From 54f9f3dc3695a3b0404970a3e0f9ea00b354c5b3 Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Wed, 15 Apr 2026 17:38:13 +0300 Subject: [PATCH] ci: add sccache with MinIO backend for build caching All Rust compilation steps now use sccache backed by MinIO S3 at caveman.kosherinata.internal:9000. Credentials via repo secrets SCCACHE_S3_ACCESS_KEY and SCCACHE_S3_SECRET_KEY. Cache is shared across all bare metal runners. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3a5e4cf..4bb7a80 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -7,6 +7,15 @@ on: pull_request: branches: [main] +env: + RUSTC_WRAPPER: sccache + SCCACHE_BUCKET: sccache + SCCACHE_ENDPOINT: http://caveman.kosherinata.internal:9000 + SCCACHE_REGION: auto + SCCACHE_S3_USE_SSL: "false" + AWS_ACCESS_KEY_ID: ${{ secrets.SCCACHE_S3_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.SCCACHE_S3_SECRET_KEY }} + jobs: check: name: Format, lint, build, test @@ -26,6 +35,9 @@ jobs: - name: Test run: cargo test --workspace + - name: Show sccache stats + run: sccache --show-stats + srpm-cortex: name: Build cortex SRPM runs-on: fedora