更新缓存

This commit is contained in:
2026-05-05 22:54:19 +08:00
parent fb0b0b787f
commit 666c3f9ac0

View File

@@ -44,21 +44,21 @@ jobs:
cd $(go env GOROOT)
for p in $GITHUB_WORKSPACE/.github/patch/*.patch; do patch --verbose -p 1 < "$p"; done
# - name: Calculate go.sum hash
# id: calc-hash
# run: |
# HASH=$(sha256sum $GITHUB_WORKSPACE/core/src/foss/golang/go.sum | cut -d ' ' -f 1)
# echo "GOSUM_HASH=$HASH" >> $GITHUB_OUTPUT
- name: Calculate go.sum hash
id: calc-hash
run: |
HASH=$(sha256sum $GITHUB_WORKSPACE/core/src/foss/golang/go.sum | cut -d ' ' -f 1)
echo "GOSUM_HASH=$HASH" >> $GITHUB_OUTPUT
# - name: Cache Go modules
# uses: actions/cache@v4
# with:
# path: |
# ~/.cache/go-build
# ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ steps.calc-hash.outputs.GOSUM_HASH }}
# restore-keys: |
# ${{ runner.os }}-go-
- name: Cache Go modules
uses: actions/cache@v5
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ steps.calc-hash.outputs.GOSUM_HASH }}
restore-keys: |
${{ runner.os }}-go-
- name: Update CA
run: |