ci: cache the Go build cache for cross-compilation workflow (#5297)

* ci: cache the Go build cache for cross-compilation workflow

* only store cache when on master

* don't hash go.sum in
This commit is contained in:
Marten Seemann
2025-08-24 00:27:48 +08:00
committed by GitHub
parent 258d6b1352
commit c04a550a18

View File

@@ -13,6 +13,15 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Load Go cache
id: load-go-cache
uses: actions/cache@v4
with:
path: ~/.cache/go-build
key: go-${{ matrix.go }}-crosscompile
restore-keys: go-${{ matrix.go }}-crosscompile
# only store cache when on master
lookup-only: ${{ github.event_name != 'push' || github.ref_name != 'master' }}
- name: Install build utils
run: |
sudo apt-get update