mirror of
https://github.com/actions/setup-go.git
synced 2024-11-15 20:04:38 +08:00
Fix glob pattern use
This commit is contained in:
parent
57dc459658
commit
1ac9d654af
@ -201,9 +201,7 @@ steps:
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Multi-target builds
|
### Multi-target builds
|
||||||
`cache-dependency-path` input used to generate unuque cache key and it is not limited to only
|
The 'cache-dependency-path' input doesn't limit itself to dependency lock files only. It can also be used with additional files that contain details about the build settings. By using this method, caches for builds created for various operating systems, architectures, etc. can be separated.
|
||||||
dependencies files. The common case is to add a file containing the extr info about the specific
|
|
||||||
build, for example build target.
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
env:
|
env:
|
||||||
@ -216,7 +214,9 @@ steps:
|
|||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.17'
|
go-version: '1.17'
|
||||||
cache-dependency-path: go.sum /tmp/env
|
cache-dependency-path: |
|
||||||
|
go.sum
|
||||||
|
/tmp/env
|
||||||
- run: go run hello.go
|
- run: go run hello.go
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user