Chore: cache go on CI (#1440)

This commit is contained in:
Goooler 2022-03-22 20:36:31 +08:00 committed by GitHub
parent 92bce6c2c6
commit 1cc88cc04f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,14 @@ jobs:
uses: actions/setup-go@v3 uses: actions/setup-go@v3
with: with:
go-version: 1.18 go-version: 1.18
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build - name: Build
uses: gradle/gradle-build-action@v2 uses: gradle/gradle-build-action@v2
with: with: