fix(ci): use our own cache for go stuffs
This commit is contained in:
@@ -11,13 +11,19 @@ jobs:
|
|||||||
goreleaser:
|
goreleaser:
|
||||||
runs-on: actions-runners
|
runs-on: actions-runners
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5
|
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version: stable
|
||||||
cache: true
|
- name: Setup Golang caches
|
||||||
cache-dependency-path: |
|
uses: actions/cache@v4
|
||||||
**/go.mod
|
with:
|
||||||
**/go.sum
|
path: |
|
||||||
|
~/.cache/go-build
|
||||||
|
~/go/pkg/mod
|
||||||
|
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-golang-
|
||||||
# - name: Install Syft
|
# - name: Install Syft
|
||||||
# run: sudo curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
|
# run: sudo curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
|
||||||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
||||||
|
|||||||
Reference in New Issue
Block a user