mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-05 11:35:53 +00:00
parent
25e0c8faac
commit
87c0185d27
1 changed files with 13 additions and 1 deletions
14
examples.md
14
examples.md
|
@ -8,6 +8,7 @@
|
|||
- [Swift, Objective-C - Carthage](#swift-objective-c---carthage)
|
||||
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
|
||||
- [Ruby - Gem](#ruby---gem)
|
||||
- [Go - Modules](#go---modules)
|
||||
|
||||
## Node - npm
|
||||
|
||||
|
@ -95,4 +96,15 @@ uses: actions/cache@preview
|
|||
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gem-
|
||||
```
|
||||
```
|
||||
|
||||
## Go - Modules
|
||||
|
||||
```yaml
|
||||
- uses: actions/cache@preview
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue