更新缓存
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user