Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 9 additions & 0 deletions .github/actions/build-benchmark-genesis/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ runs:
ref: master
path: hive

# Redirect Go's module/build caches to a per-job temp dir so the
# actions/setup-go cache restore extracts into an empty target. On
# self-hosted runners $GOMODCACHE persists across jobs and would
# otherwise collide with the cache tarball ("File exists" from tar).
- name: Use ephemeral Go cache dirs
shell: bash
run: |
echo "GOMODCACHE=${{ runner.temp }}/go/mod" >> "$GITHUB_ENV"
echo "GOCACHE=${{ runner.temp }}/go/build" >> "$GITHUB_ENV"
- name: Setup Go for Hive
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/actions/build-evm-client/geth/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ runs:
repository: ${{ inputs.repo }}
ref: ${{ steps.geth-sha.outputs.sha }}
path: go-ethereum
# See note in build-benchmark-genesis/action.yaml: redirect Go caches
# to a per-job temp dir so setup-go's cache restore doesn't collide
# with a persistent $GOMODCACHE on self-hosted runners.
- name: Use ephemeral Go cache dirs
if: steps.cache-restore.outputs.cache-hit != 'true'
shell: bash
run: |
echo "GOMODCACHE=${{ runner.temp }}/go/mod" >> "$GITHUB_ENV"
echo "GOCACHE=${{ runner.temp }}/go/build" >> "$GITHUB_ENV"
- name: Setup golang
if: steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/hive-consume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ jobs:
ref: master
path: hive

# Redirect Go's caches to a per-job temp dir so the setup-go cache
# restore doesn't collide with a persistent $GOMODCACHE on
# self-hosted runners (see build-benchmark-genesis/action.yaml).
- name: Use ephemeral Go cache dirs
shell: bash
run: |
echo "GOMODCACHE=${{ runner.temp }}/go/mod" >> "$GITHUB_ENV"
echo "GOCACHE=${{ runner.temp }}/go/build" >> "$GITHUB_ENV"
- name: Setup go env and cache
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/hive-execute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ jobs:
ref: master
path: hive

# Redirect Go's caches to a per-job temp dir so the setup-go cache
# restore doesn't collide with a persistent $GOMODCACHE on
# self-hosted runners (see build-benchmark-genesis/action.yaml).
- name: Use ephemeral Go cache dirs
shell: bash
run: |
echo "GOMODCACHE=${{ runner.temp }}/go/mod" >> "$GITHUB_ENV"
echo "GOCACHE=${{ runner.temp }}/go/build" >> "$GITHUB_ENV"
- name: Setup Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
Expand Down
Loading