mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
chore: add cache for github actions
This commit is contained in:
1 parent
9b2f00f4c8
commit
a814f8c545
5 files changed
+16
-4
No files matched your search
@@ -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 .
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user