2 Commits

Author SHA1 Message Date
fea5dd02eb feat: add cache restor key
Some checks failed
CI / check and test (pull_request) Has been cancelled
2024-04-01 13:00:07 +02:00
26f9c2b111 fix: add name to cache key generation 2024-04-01 12:54:42 +02:00

View File

@@ -13,14 +13,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # all history for all branches and tags
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
- name: Create cache key
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
id: hash-go
with:
patterns: |
@@ -34,6 +33,8 @@ jobs:
/go_path
/go_cache
key: go_path-${{ steps.hash-go.outputs.hash }}
restore-keys: |-
go_cache-${{ steps.hash-go.outputs.hash }}
- name: build
run: make build
- name: test