From 413ca28c7268138b0708c3d057ce887caa8209c0 Mon Sep 17 00:00:00 2001 From: Hiddify <114227601+hiddify1@users.noreply.github.com> Date: Sun, 20 Aug 2023 13:24:57 +0000 Subject: [PATCH] new: add go cache for speed up build --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cb4532b..8f18478 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,11 +40,15 @@ jobs: run: | sudo apt-get install --reinstall libc6-dev - - name: Setup Go - uses: actions/setup-go@v4 + - name: Setup Golang with cache + uses: magnetikonline/action-golang-cache@v4 with: - go-version-file: 'go.mod' - check-latest: false + go-version: 1.20 + # - name: Setup Go + # uses: actions/setup-go@v4 + # with: + # go-version-file: 'go.mod' + # check-latest: false - name: Setup Java if: startsWith(matrix.job.target,'android')