Skip to content

Commit 71c802f

Browse files
committed
ci: update GOCACHE vars on windows runner to improve performance
windows runner has significantly slower disks and restoring the cache is wasting a huge amount of time
1 parent 3e3ab1b commit 71c802f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ jobs:
4545
runs-on: ${{ matrix.os }}
4646
steps:
4747
- uses: actions/checkout@v4
48+
- name: update GOCACHE vars
49+
if: runner.os == 'Windows'
50+
run: |
51+
echo "GOCACHE: D:\gocache" >> "$GITHUB_ENV"
52+
echo "GOMODCACHE: D:\gomodcache" >> "$GITHUB_ENV"
53+
echo "GOTMPDIR: D:\gotmp" >> "$GITHUB_ENV"
54+
mkdir D:\gotmp
4855
- uses: actions/setup-go@v5
4956
with:
5057
go-version-file: go.mod

0 commit comments

Comments
 (0)