mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 14:05:39 +00:00
github/windows: improve caching in -race builder (#4172)
Signed-off-by: James Tucker <james@tailscale.com> Co-authored-by: James Tucker <james@tailscale.com>
This commit is contained in:
parent
5f529d1359
commit
858286d97f
19
.github/workflows/windows-race.yml
vendored
19
.github/workflows/windows-race.yml
vendored
@ -27,10 +27,21 @@ 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).
|
||||||
|
# The -race- here ensures that non-race builds and race builds do not
|
||||||
|
# overwrite each others cache, as while they share some files, they
|
||||||
|
# differ in most by volume (build cache).
|
||||||
|
# TODO(raggi): add a go version here.
|
||||||
|
key: ${{ runner.os }}-go-2-race-${{ hashFiles('**/go.sum') }}
|
||||||
|
|
||||||
- name: Test with -race flag
|
- name: Test with -race flag
|
||||||
# Don't use -bench=. -benchtime=1x.
|
# Don't use -bench=. -benchtime=1x.
|
||||||
|
Loading…
Reference in New Issue
Block a user