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