Fix: actions build

This commit is contained in:
yaling888 2022-04-21 04:51:01 +08:00
parent 0d004bf6f3
commit 0a2701eef0
3 changed files with 4 additions and 4 deletions

View File

@ -20,9 +20,7 @@ jobs:
- name: Cache go module - name: Cache go module
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: ~/go/pkg/mod
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go- ${{ runner.os }}-go-

View File

@ -1,4 +1,5 @@
//go:build build_local //go:build build_local
// +build build_local
package script package script

View File

@ -1,4 +1,5 @@
//go:build !build_local && cgo //go:build !build_local
// +build !build_local
package script package script