Add .gitea/workflows/*.yaml
All checks were successful
Caching with Go / Cache Go (push) Successful in 42s
All checks were successful
Caching with Go / Cache Go (push) Successful in 42s
This commit is contained in:
26
.gitea/workflows/cache-verify2.yml
Normal file
26
.gitea/workflows/cache-verify2.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: Caching with Go
|
||||||
|
on: push
|
||||||
|
jobs:
|
||||||
|
Cache-Go:
|
||||||
|
name: Cache Go
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '>=1.20.1'
|
||||||
|
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||||
|
id: hash-go
|
||||||
|
with:
|
||||||
|
patterns: |
|
||||||
|
go.mod
|
||||||
|
go.sum
|
||||||
|
- name: cache go
|
||||||
|
id: cache-go
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with: # Specify with your cache path
|
||||||
|
path: |
|
||||||
|
/your_cache_path
|
||||||
|
key: go_path-${{ steps.hash-go.outputs.hash }}
|
||||||
|
restore-keys: |-
|
||||||
|
go_cache-${{ steps.hash-go.outputs.hash }}
|
||||||
Reference in New Issue
Block a user