mirror of
https://github.com/actions/cache.git
synced 2025-04-23 14:30:49 +00:00
Move Rust example to examples.md
This commit is contained in:
parent
d6264c17f8
commit
1d41a9b7c8
2 changed files with 22 additions and 21 deletions
20
README.md
20
README.md
|
@ -57,26 +57,6 @@ jobs:
|
||||||
|
|
||||||
See [Examples](examples.md)
|
See [Examples](examples.md)
|
||||||
|
|
||||||
### Rust - Cargo
|
|
||||||
|
|
||||||
```
|
|
||||||
- name: Cache cargo registry
|
|
||||||
uses: actions/cache@preview
|
|
||||||
with:
|
|
||||||
path: ~/.cargo/registry
|
|
||||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
- name: Cache cargo index
|
|
||||||
uses: actions/cache@preview
|
|
||||||
with:
|
|
||||||
path: ~/.cargo/git
|
|
||||||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
- name: Cache cargo build
|
|
||||||
uses: actions/cache@preview
|
|
||||||
with:
|
|
||||||
path: target
|
|
||||||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Cache Limits
|
## Cache Limits
|
||||||
|
|
||||||
Individual caches are limited to 200MB and a repository can have up to 2GB of caches. Once the 2GB limit is reached, older caches will be evicted based on when the cache was last accessed.
|
Individual caches are limited to 200MB and a repository can have up to 2GB of caches. Once the 2GB limit is reached, older caches will be evicted based on when the cache was last accessed.
|
||||||
|
|
21
examples.md
21
examples.md
|
@ -8,6 +8,7 @@
|
||||||
- [Swift, Objective-C - Carthage](#swift-objective-c---carthage)
|
- [Swift, Objective-C - Carthage](#swift-objective-c---carthage)
|
||||||
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
|
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
|
||||||
- [Ruby - Gem](#ruby---gem)
|
- [Ruby - Gem](#ruby---gem)
|
||||||
|
- [Rust - Cargo](#rust---cargo)
|
||||||
|
|
||||||
## Node - npm
|
## Node - npm
|
||||||
|
|
||||||
|
@ -96,3 +97,23 @@ uses: actions/cache@preview
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gem-
|
${{ runner.os }}-gem-
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Rust - Cargo
|
||||||
|
|
||||||
|
```
|
||||||
|
- name: Cache cargo registry
|
||||||
|
uses: actions/cache@preview
|
||||||
|
with:
|
||||||
|
path: ~/.cargo/registry
|
||||||
|
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
- name: Cache cargo index
|
||||||
|
uses: actions/cache@preview
|
||||||
|
with:
|
||||||
|
path: ~/.cargo/git
|
||||||
|
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
- name: Cache cargo build
|
||||||
|
uses: actions/cache@preview
|
||||||
|
with:
|
||||||
|
path: target
|
||||||
|
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue