From 2447e9bcb52d0adc4e92d68bef587cd36acdef80 Mon Sep 17 00:00:00 2001 From: randogoth Date: Wed, 7 Oct 2026 15:30:17 +0300 Subject: [PATCH] feat: cache cargo registry and target dirs keyed on Cargo.lock --- .forgejo/workflows/macos.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.forgejo/workflows/macos.yml b/.forgejo/workflows/macos.yml index 73fb04e..96a8439 100644 --- a/.forgejo/workflows/macos.yml +++ b/.forgejo/workflows/macos.yml @@ -21,6 +21,14 @@ jobs: repository: randogoth/fumi ref: main path: fumi + - uses: https://code.forgejo.org/actions/cache@v4 + with: + path: | + ~/.cargo/registry + carrier/target + fumi/target + key: cargo-${{ hashFiles('carrier/Cargo.lock') }} + restore-keys: cargo- # Forgejo auto-injects GITHUB_TOKEN (GH Actions compatibility), scoped # to this Forgejo instance. Nix auto-detects that env var and assumes # it's a github.com credential, so it sends it to api.github.com when