|
|
|
@ -57,7 +57,7 @@ jobs:
|
|
|
|
# See if the cache entry already exists to avoid downloading it
|
|
|
|
# See if the cache entry already exists to avoid downloading it
|
|
|
|
# and doing the cache write again.
|
|
|
|
# and doing the cache write again.
|
|
|
|
- id: check-cache
|
|
|
|
- id: check-cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache # relative to workspace; see env note at top of file
|
|
|
|
path: gomodcache # relative to workspace; see env note at top of file
|
|
|
|
key: ${{ steps.hash.outputs.key }}
|
|
|
|
key: ${{ steps.hash.outputs.key }}
|
|
|
|
@ -69,7 +69,7 @@ jobs:
|
|
|
|
run: go mod download
|
|
|
|
run: go mod download
|
|
|
|
- name: Cache Go modules
|
|
|
|
- name: Cache Go modules
|
|
|
|
if: steps.check-cache.outputs.cache-hit != 'true'
|
|
|
|
if: steps.check-cache.outputs.cache-hit != 'true'
|
|
|
|
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache # relative to workspace; see env note at top of file
|
|
|
|
path: gomodcache # relative to workspace; see env note at top of file
|
|
|
|
key: ${{ steps.hash.outputs.key }}
|
|
|
|
key: ${{ steps.hash.outputs.key }}
|
|
|
|
@ -92,7 +92,7 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
path: src
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -130,13 +130,13 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
path: src
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
enableCrossOsArchive: true
|
|
|
|
enableCrossOsArchive: true
|
|
|
|
- name: Restore Cache
|
|
|
|
- name: Restore Cache
|
|
|
|
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
# Note: unlike the other setups, this is only grabbing the mod download
|
|
|
|
# Note: unlike the other setups, this is only grabbing the mod download
|
|
|
|
# cache, rather than the whole mod directory, as the download cache
|
|
|
|
# cache, rather than the whole mod directory, as the download cache
|
|
|
|
@ -241,7 +241,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
if: matrix.key != 'win-tool-go'
|
|
|
|
if: matrix.key != 'win-tool-go'
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -249,7 +249,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
- name: Restore Cache
|
|
|
|
- name: Restore Cache
|
|
|
|
if: matrix.key != 'win-tool-go'
|
|
|
|
if: matrix.key != 'win-tool-go'
|
|
|
|
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
path: |
|
|
|
|
~/.cache/go-build
|
|
|
|
~/.cache/go-build
|
|
|
|
@ -298,7 +298,7 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
path: src
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -321,7 +321,7 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
path: src
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -377,7 +377,7 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
path: src
|
|
|
|
- name: Restore Cache
|
|
|
|
- name: Restore Cache
|
|
|
|
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
# Note: unlike the other setups, this is only grabbing the mod download
|
|
|
|
# Note: unlike the other setups, this is only grabbing the mod download
|
|
|
|
# cache, rather than the whole mod directory, as the download cache
|
|
|
|
# cache, rather than the whole mod directory, as the download cache
|
|
|
|
@ -393,7 +393,7 @@ jobs:
|
|
|
|
${{ github.job }}-${{ runner.os }}-${{ matrix.goos }}-${{ matrix.goarch }}-go-2-${{ hashFiles('**/go.sum') }}
|
|
|
|
${{ github.job }}-${{ runner.os }}-${{ matrix.goos }}-${{ matrix.goarch }}-go-2-${{ hashFiles('**/go.sum') }}
|
|
|
|
${{ github.job }}-${{ runner.os }}-${{ matrix.goos }}-${{ matrix.goarch }}-go-2-
|
|
|
|
${{ github.job }}-${{ runner.os }}-${{ matrix.goos }}-${{ matrix.goarch }}-go-2-
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -429,7 +429,7 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
path: src
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -467,7 +467,7 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
path: src
|
|
|
|
- name: Restore Cache
|
|
|
|
- name: Restore Cache
|
|
|
|
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
# Note: unlike the other setups, this is only grabbing the mod download
|
|
|
|
# Note: unlike the other setups, this is only grabbing the mod download
|
|
|
|
# cache, rather than the whole mod directory, as the download cache
|
|
|
|
# cache, rather than the whole mod directory, as the download cache
|
|
|
|
@ -483,7 +483,7 @@ jobs:
|
|
|
|
${{ github.job }}-${{ runner.os }}-${{ matrix.goos }}-${{ matrix.goarch }}-go-2-${{ hashFiles('**/go.sum') }}
|
|
|
|
${{ github.job }}-${{ runner.os }}-${{ matrix.goos }}-${{ matrix.goarch }}-go-2-${{ hashFiles('**/go.sum') }}
|
|
|
|
${{ github.job }}-${{ runner.os }}-${{ matrix.goos }}-${{ matrix.goarch }}-go-2-
|
|
|
|
${{ github.job }}-${{ runner.os }}-${{ matrix.goos }}-${{ matrix.goarch }}-go-2-
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -518,7 +518,7 @@ jobs:
|
|
|
|
# some Android breakages early.
|
|
|
|
# some Android breakages early.
|
|
|
|
# TODO(bradfitz): better; see https://github.com/tailscale/tailscale/issues/4482
|
|
|
|
# TODO(bradfitz): better; see https://github.com/tailscale/tailscale/issues/4482
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -539,7 +539,7 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
path: src
|
|
|
|
- name: Restore Cache
|
|
|
|
- name: Restore Cache
|
|
|
|
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
# Note: unlike the other setups, this is only grabbing the mod download
|
|
|
|
# Note: unlike the other setups, this is only grabbing the mod download
|
|
|
|
# cache, rather than the whole mod directory, as the download cache
|
|
|
|
# cache, rather than the whole mod directory, as the download cache
|
|
|
|
@ -555,7 +555,7 @@ jobs:
|
|
|
|
${{ github.job }}-${{ runner.os }}-go-2-${{ hashFiles('**/go.sum') }}
|
|
|
|
${{ github.job }}-${{ runner.os }}-go-2-${{ hashFiles('**/go.sum') }}
|
|
|
|
${{ github.job }}-${{ runner.os }}-go-2-
|
|
|
|
${{ github.job }}-${{ runner.os }}-go-2-
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -588,7 +588,7 @@ jobs:
|
|
|
|
- name: Set GOMODCACHE env
|
|
|
|
- name: Set GOMODCACHE env
|
|
|
|
run: echo "GOMODCACHE=$HOME/.cache/go-mod" >> $GITHUB_ENV
|
|
|
|
run: echo "GOMODCACHE=$HOME/.cache/go-mod" >> $GITHUB_ENV
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -671,7 +671,7 @@ jobs:
|
|
|
|
- name: Set GOMODCACHE env
|
|
|
|
- name: Set GOMODCACHE env
|
|
|
|
run: echo "GOMODCACHE=$HOME/.cache/go-mod" >> $GITHUB_ENV
|
|
|
|
run: echo "GOMODCACHE=$HOME/.cache/go-mod" >> $GITHUB_ENV
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -689,7 +689,7 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
path: src
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -712,7 +712,7 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
path: src
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -734,7 +734,7 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
path: src
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
@ -788,7 +788,7 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: src
|
|
|
|
path: src
|
|
|
|
- name: Restore Go module cache
|
|
|
|
- name: Restore Go module cache
|
|
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
|
|
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: gomodcache
|
|
|
|
path: gomodcache
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
|