chore: Clean up cache usage in workflows (#6444)
* chore: Use same cache as bats tests * chore: Clarify cache miss check * chore: Remove use of setup-go cache * chore: Use separate caches * CR
This commit is contained in:
1 parent
c1eae29f24
commit
9c0ea988f5
9 files changed
+184
-126
No files matched your search
@@ -33,25 +33,17 @@ jobs:
|
||||
with:
|
||||
go-version: "${{ steps.get-go-version.outputs.go-version }}"
|
||||
cache: false
|
||||
- name: Determine go cache key
|
||||
id: go-cache-key
|
||||
run: |
|
||||
echo "key=${{ runner.os }}-go-${{ hashFiles('**/go.sum', './Makefile', './tools/tools.go') }}" >> "$GITHUB_OUTPUT"
|
||||
- name: Determine Go cache paths
|
||||
id: go-cache-paths
|
||||
run: |
|
||||
echo "go-build=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
|
||||
echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
|
||||
echo "go-bin=$(go env GOPATH)/bin" >> "$GITHUB_OUTPUT"
|
||||
- name: Set up Go modules cache
|
||||
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||
with:
|
||||
path: |
|
||||
${{ steps.go-cache-paths.outputs.go-build }}
|
||||
${{ steps.go-cache-paths.outputs.go-mod }}
|
||||
${{ steps.go-cache-paths.outputs.go-bin }}
|
||||
key: ${{ steps.go-cache-key.outputs.key }}
|
||||
key: go-mod-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go
|
||||
go-mod
|
||||
- name: Build Boundary
|
||||
run: make build-no-ui
|
||||
Reference in new issue
Block a user