mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-27 10:47:35 +00:00
github/windows: improve cache performance (#4171)
- Remove the expanded module files, as Go can likely expand the zips faster than tar can expand the extra copies. - Add the go-build cache. - Remove the extra restore key to avoid extra cache lookups on miss. Signed-off-by: James Tucker <james@tailscale.com> Co-authored-by: James Tucker <james@tailscale.com>
This commit is contained in:
parent
45a7f6689c
commit
36b148c2d2
16
.github/workflows/windows.yml
vendored
16
.github/workflows/windows.yml
vendored
@ -27,10 +27,18 @@ jobs:
|
|||||||
- name: Restore Cache
|
- name: Restore Cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/go/pkg/mod
|
# Note: unlike some other setups, this is only grabbing the mod download
|
||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
# cache, rather than the whole mod directory, as the download cache
|
||||||
restore-keys: |
|
# contains zips that can be unpacked in parallel faster than they can be
|
||||||
${{ runner.os }}-go-
|
# fetched and extracted by tar
|
||||||
|
path: |
|
||||||
|
~/go/pkg/mod/cache
|
||||||
|
~\AppData\Local\go-build
|
||||||
|
|
||||||
|
# The -2- here should be incremented when the scheme of data to be
|
||||||
|
# cached changes (e.g. path above changes).
|
||||||
|
# TODO(raggi): add a go version here.
|
||||||
|
key: ${{ runner.os }}-go-2-${{ hashFiles('**/go.sum') }}
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
# Don't use -bench=. -benchtime=1x.
|
# Don't use -bench=. -benchtime=1x.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user