Skip to content

ci: improve Go caching #7954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Jun 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! Reduce thrashing
  • Loading branch information
ammario committed Jun 10, 2023
commit 9676000fbaced72c31e8372f95d9c6acdb5ea543
6 changes: 3 additions & 3 deletions .github/actions/setup-go/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ runs:
go-version: ${{ inputs.version }}

- name: Get cache dirs
id: get_cache_dirs
shell: bash
run: |
echo "go-mod-cache=$(go env GOMODCACHE)" >> $GITHUB_ENV
echo "go-cache=$(go env GOCACHE)" >> $GITHUB_ENV
set -x
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV

# We split up GOMODCACHE from GOCACHE because the latter must be invalidated
# on code change, but the former can be kept.
Expand Down