From 7b2235d56b880faa3351aaa4a11b9404249953a4 Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Wed, 15 Apr 2026 17:44:21 +0300 Subject: [PATCH] fix(ci): install sccache with S3 feature if missing The distro sccache package lacks S3 support. Install from cargo with --features s3 if the existing binary can't connect to the S3 backend. Skips install if already present and working. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4bb7a80..16ab5c9 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -23,6 +23,14 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Ensure sccache with S3 support + run: | + if sccache --version 2>/dev/null && sccache --show-stats 2>/dev/null; then + echo "sccache with S3 support already installed" + else + cargo install sccache --features s3 --locked + fi + - name: Check formatting run: cargo fmt --check --all