Add .gitea/workflows/*.yaml
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
name: Caching with Go
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
Cache-Go:
|
||||
name: Cache Go
|
||||
@@ -23,5 +25,5 @@ jobs:
|
||||
path: |
|
||||
/your_cache_path
|
||||
key: go_path-${{ steps.hash-go.outputs.hash }}
|
||||
restore-keys: |-
|
||||
restore-keys: |
|
||||
go_cache-${{ steps.hash-go.outputs.hash }}
|
||||
@@ -5,17 +5,14 @@ on:
|
||||
|
||||
jobs:
|
||||
TestCache:
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache
|
||||
name: Cache Go
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '>=1.20.1'
|
||||
|
||||
|
||||
- name: Get go-hashfiles
|
||||
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||
id: hash-go
|
||||
|
||||
Reference in New Issue
Block a user