mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-27 05:11:03 -05:00
Add Ruby Gem example (#4)
This commit is contained in:
parent
889c603691
commit
7611296bb3
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
@ -102,6 +102,16 @@ jobs:
|
||||||
key: ${{ runner.os }}-maven
|
key: ${{ runner.os }}-maven
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Ruby - Gem
|
||||||
|
```yaml
|
||||||
|
- uses: actions/cache@preview
|
||||||
|
with:
|
||||||
|
path: vendor/bundle
|
||||||
|
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-gem-
|
||||||
|
```
|
||||||
|
|
||||||
## 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.
|
||||||
|
|
Loading…
Reference in a new issue