From 1cc88cc04f020eff924064f46070f3a6ecadac8c Mon Sep 17 00:00:00 2001 From: Goooler Date: Tue, 22 Mar 2022 20:36:31 +0800 Subject: [PATCH] Chore: cache go on CI (#1440) --- .github/workflows/build-unsigned.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-unsigned.yaml b/.github/workflows/build-unsigned.yaml index 0337a4ed..31e47eaf 100644 --- a/.github/workflows/build-unsigned.yaml +++ b/.github/workflows/build-unsigned.yaml @@ -40,6 +40,14 @@ jobs: uses: actions/setup-go@v3 with: 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 uses: gradle/gradle-build-action@v2 with: