Add .gitea/workflows/*.yaml
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
name: Caching with Go
|
name: Caching with Go
|
||||||
on: push
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
Cache-Go:
|
Cache-Go:
|
||||||
name: Cache Go
|
name: Cache Go
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||||
id: hash-go
|
id: hash-go
|
||||||
with:
|
with:
|
||||||
patterns: |-
|
patterns: |
|
||||||
go.mod
|
go.mod
|
||||||
go.sum
|
go.sum
|
||||||
|
|
||||||
@@ -29,13 +29,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache go
|
- name: Cache go
|
||||||
id: cache-go
|
id: cache-go
|
||||||
uses: https://github.com/actions/cache@v3 # Action cache
|
uses: actions/cache@v3
|
||||||
with: # specify with your GOMODCACHE and GOCACHE
|
with: # specify with your GOMODCACHE and GOCACHE
|
||||||
path: |-
|
path: |
|
||||||
/root/go/pkg/mod
|
/root/go/pkg/mod
|
||||||
/root/.cache/go-build
|
/root/.cache/go-build
|
||||||
key: go_cache-${{ steps.hash-go.outputs.hash }}
|
key: go_cache-${{ steps.hash-go.outputs.hash }}
|
||||||
restore-keys: |-
|
restore-keys: |
|
||||||
go_cache-${{ steps.hash-go.outputs.hash }}
|
go_cache-${{ steps.hash-go.outputs.hash }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
Reference in New Issue
Block a user