mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-01 17:49:02 +00:00
consistent cache path to ensure hit
Change-Id: Ic57ecc47db239f0340e225f464a1809e02bee712 Signed-off-by: Tom Proctor <tomhjp@users.noreply.github.com>
This commit is contained in:
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@@ -240,15 +240,13 @@ jobs:
|
|||||||
- name: Restore Go module cache
|
- name: Restore Go module cache
|
||||||
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}/gomodcache
|
path: gomodcache
|
||||||
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
||||||
enableCrossOsArchive: true
|
enableCrossOsArchive: true
|
||||||
|
|
||||||
- name: Setup cigocacher
|
- name: Setup cigocacher
|
||||||
id: cigocacher-setup
|
id: cigocacher-setup
|
||||||
uses: ./src/.github/actions/go-cache
|
uses: ./src/.github/actions/go-cache
|
||||||
env:
|
|
||||||
GOMODCACHE: ${{ github.workspace }}/gomodcache
|
|
||||||
with:
|
with:
|
||||||
checkout-path: ${{ github.workspace }}/src
|
checkout-path: ${{ github.workspace }}/src
|
||||||
cache-dir: ${{ github.workspace }}/cigocacher
|
cache-dir: ${{ github.workspace }}/cigocacher
|
||||||
@@ -257,15 +255,11 @@ jobs:
|
|||||||
- name: test
|
- name: test
|
||||||
if: matrix.key != 'win-bench' # skip on bench builder
|
if: matrix.key != 'win-bench' # skip on bench builder
|
||||||
working-directory: src
|
working-directory: src
|
||||||
env:
|
|
||||||
GOMODCACHE: ${{ github.workspace }}/gomodcache
|
|
||||||
run: go run ./cmd/testwrapper sharded:${{ matrix.shard }}
|
run: go run ./cmd/testwrapper sharded:${{ matrix.shard }}
|
||||||
|
|
||||||
- name: bench all
|
- name: bench all
|
||||||
if: matrix.key == 'win-bench'
|
if: matrix.key == 'win-bench'
|
||||||
working-directory: src
|
working-directory: src
|
||||||
env:
|
|
||||||
GOMODCACHE: ${{ github.workspace }}/gomodcache
|
|
||||||
# Don't use -bench=. -benchtime=1x.
|
# Don't use -bench=. -benchtime=1x.
|
||||||
# Somewhere in the layers (powershell?)
|
# Somewhere in the layers (powershell?)
|
||||||
# the equals signs cause great confusion.
|
# the equals signs cause great confusion.
|
||||||
|
|||||||
Reference in New Issue
Block a user