feat: cache cargo registry and target dirs keyed on Cargo.lock
All checks were successful
macOS / check (push) Successful in 48s
All checks were successful
macOS / check (push) Successful in 48s
This commit is contained in:
parent
648f041cf3
commit
2447e9bcb5
1 changed files with 8 additions and 0 deletions
|
|
@ -21,6 +21,14 @@ jobs:
|
||||||
repository: randogoth/fumi
|
repository: randogoth/fumi
|
||||||
ref: main
|
ref: main
|
||||||
path: fumi
|
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
|
# Forgejo auto-injects GITHUB_TOKEN (GH Actions compatibility), scoped
|
||||||
# to this Forgejo instance. Nix auto-detects that env var and assumes
|
# 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
|
# it's a github.com credential, so it sends it to api.github.com when
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue