chore(ci): fix an issue in docker build cache (#262)

This commit is contained in:
maskpp 2024-05-27 16:35:22 +08:00 committed by GitHub
parent 67b74ce055
commit 037640eccd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,9 +42,8 @@ jobs:
- name: Cache Go build - name: Cache Go build
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
enableCrossOsArchive: true
path: | path: |
go-build-platforms ${{ runner.os }}-go_build-platforms
key: ${{ runner.os }}-go_build-platforms key: ${{ runner.os }}-go_build-platforms
restore-keys: | restore-keys: |
${{ runner.os }}-go_build-platforms ${{ runner.os }}-go_build-platforms
@ -54,7 +53,7 @@ jobs:
with: with:
cache-map: | cache-map: |
{ {
"go-build-platforms": "/root/.cache/go-build" "${{ runner.os }}-go_build-platforms": "/root/.cache/go-build"
} }
skip-extraction: ${{ steps.cache.outputs.cache-hit }} skip-extraction: ${{ steps.cache.outputs.cache-hit }}