chore: add cache for github actions

This commit is contained in:
nadoo committed 2022-01-27 17:15:04 +08:00
1 parent 9b2f00f4c8
commit a814f8c545
5 files changed
+16 -4

No files matched your search

+10
View File
@@ -22,6 +22,16 @@ jobs:
go-version: '1.18.0-beta1'
# go-version: ${{ env.GO_VERSION}}
- name: Set up Cache
uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: go test -v .
+2
View File
@@ -63,3 +63,5 @@ jobs:
platforms: ${{ env.PLATFORMS }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max