new: add cache to go
This commit is contained in:
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@@ -40,15 +40,21 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get install --reinstall libc6-dev
|
sudo apt-get install --reinstall libc6-dev
|
||||||
|
|
||||||
- name: Setup Golang with cache
|
- name: Setup Go
|
||||||
uses: magnetikonline/action-golang-cache@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.20
|
go-version-file: 'go.mod'
|
||||||
# - name: Setup Go
|
check-latest: false
|
||||||
# uses: actions/setup-go@v4
|
|
||||||
# with:
|
- name: Setup Golang caches
|
||||||
# go-version-file: 'go.mod'
|
uses: actions/cache@v3
|
||||||
# check-latest: false
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cache/go-build
|
||||||
|
~/go/pkg/mod
|
||||||
|
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-golang-
|
||||||
|
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
if: startsWith(matrix.job.target,'android')
|
if: startsWith(matrix.job.target,'android')
|
||||||
|
|||||||
Reference in New Issue
Block a user