diff --git a/.github/workflows/pr_build.yaml b/.github/workflows/pr_build.yaml index a20682cbc1..4321198a55 100644 --- a/.github/workflows/pr_build.yaml +++ b/.github/workflows/pr_build.yaml @@ -366,6 +366,11 @@ jobs: needs: images-windows timeout-minutes: 45 + env: + GOPATH: 'D:\golang\go' + GOCACHE: 'D:\golang\cache' + GOMODCACHE: 'D:\golang\modcache' + permissions: contents: read @@ -379,6 +384,7 @@ jobs: uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: go-version-file: 'go.mod' + cache: true - name: Load cached deps uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: @@ -413,6 +419,11 @@ jobs: runs-on: windows-2022 timeout-minutes: 45 + env: + GOPATH: 'D:\golang\go' + GOCACHE: 'D:\golang\cache' + GOMODCACHE: 'D:\golang\modcache' + permissions: contents: read @@ -423,6 +434,7 @@ jobs: uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: go-version-file: 'go.mod' + cache: true - name: Setup dep cache uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: @@ -437,6 +449,11 @@ jobs: needs: cache-deps-windows timeout-minutes: 45 + env: + GOPATH: 'D:\golang\go' + GOCACHE: 'D:\golang\cache' + GOMODCACHE: 'D:\golang\modcache' + permissions: contents: read @@ -450,6 +467,7 @@ jobs: uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: go-version-file: 'go.mod' + cache: true - name: Load cached deps uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: @@ -480,6 +498,11 @@ jobs: needs: cache-deps-windows timeout-minutes: 45 + env: + GOPATH: 'D:\golang\go' + GOCACHE: 'D:\golang\cache' + GOMODCACHE: 'D:\golang\modcache' + permissions: contents: read @@ -493,6 +516,7 @@ jobs: uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: go-version-file: 'go.mod' + cache: true - name: Load cached deps uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: @@ -514,6 +538,11 @@ jobs: needs: cache-deps-windows timeout-minutes: 45 + env: + GOPATH: 'D:\golang\go' + GOCACHE: 'D:\golang\cache' + GOMODCACHE: 'D:\golang\modcache' + permissions: contents: read @@ -527,6 +556,7 @@ jobs: uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: go-version-file: 'go.mod' + cache: true - name: Load cached deps uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: