diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index df42604..20e4eef 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -36,15 +36,13 @@ jobs: with: components: rustfmt, clippy + # rust-cache, not a plain actions/cache of target/: that one restored + # through the cargo- prefix and saved everything back, so stale + # artifacts piled up (1.2 GB by v0.8.4) and run #40 filled the shared + # runner's disk. rust-cache keeps only compiled dependencies, drops our + # own crate and stale files before saving, and turns off incremental. - name: Cache cargo - uses: actions/cache@v4 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: cargo-${{ hashFiles('Cargo.lock') }} - restore-keys: cargo- + uses: Swatinem/rust-cache@v2 - name: Check formatting run: cargo fmt --check