new: add go cache for speed up build

This commit is contained in:
Hiddify
2023-08-20 13:24:57 +00:00
parent 69e2d2bfa1
commit 413ca28c72

View File

@@ -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')