1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-04-02 04:57:46 +02:00
This commit is contained in:
Jeremiah Senkpiel 2024-03-19 20:15:21 +01:00 committed by GitHub
commit cff18ac770
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -589,14 +589,20 @@ whenever possible:
```yaml ```yaml
- uses: actions/cache@v3 - uses: actions/cache@v3
env:
BUILD_TYPE: debug # adjust when using `--release` or custom targets
with: with:
path: | path: |
~/.cargo/.crates.toml
~/.cargo/.crates2.json
~/.cargo/bin/ ~/.cargo/bin/
~/.cargo/registry/index/ ~/.cargo/registry/index/
~/.cargo/registry/cache/ ~/.cargo/registry/cache/
~/.cargo/git/db/ ~/.cargo/git/db/
target/ target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} key: ${{ runner.os }}-cargo-${{ env.BUILD_TYPE }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ env.BUILD_TYPE }}-
``` ```
## Scala - SBT ## Scala - SBT