|
|
|
|
@ -2,10 +2,6 @@
|
|
|
|
|
# both PRs and merged commits, and for the latter reports failures to slack.
|
|
|
|
|
name: CI
|
|
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
|
id-token: write # This is required for requesting the JWT
|
|
|
|
|
contents: read # This is required for actions/checkout
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
# Our fuzz job, powered by OSS-Fuzz, fails periodically because we upgrade to
|
|
|
|
|
# new Go versions very eagerly. OSS-Fuzz is a little more conservative, and
|
|
|
|
|
@ -212,9 +208,12 @@ jobs:
|
|
|
|
|
find $(go env GOCACHE) -type f -mmin +90 -delete
|
|
|
|
|
|
|
|
|
|
windows:
|
|
|
|
|
# windows-8vpu is a 2022 GitHub-managed runner in our
|
|
|
|
|
# org with 8 cores and 32 GB of RAM:
|
|
|
|
|
# https://github.com/organizations/tailscale/settings/actions/github-hosted-runners/1
|
|
|
|
|
permissions:
|
|
|
|
|
id-token: write # This is required for requesting the GitHub action identity JWT that can auth to cigocached
|
|
|
|
|
contents: read # This is required for actions/checkout
|
|
|
|
|
# ci-windows-github-1 is a 2022 GitHub-managed runner in our org with 8 cores
|
|
|
|
|
# and 32 GB of RAM. It is connected to a private Azure VNet that hosts cigocached.
|
|
|
|
|
# https://github.com/organizations/tailscale/settings/actions/github-hosted-runners/5
|
|
|
|
|
runs-on: ci-windows-github-1
|
|
|
|
|
needs: gomod-cache
|
|
|
|
|
name: Windows (${{ matrix.name || matrix.shard}})
|
|
|
|
|
@ -247,7 +246,7 @@ jobs:
|
|
|
|
|
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
|
|
|
|
enableCrossOsArchive: true
|
|
|
|
|
|
|
|
|
|
- name: Setup cigocacher
|
|
|
|
|
- name: Set up cigocacher
|
|
|
|
|
id: cigocacher-setup
|
|
|
|
|
uses: ./src/.github/actions/go-cache
|
|
|
|
|
with:
|
|
|
|
|
@ -268,12 +267,11 @@ jobs:
|
|
|
|
|
# the equals signs cause great confusion.
|
|
|
|
|
run: go test ./... -bench . -benchtime 1x -run "^$"
|
|
|
|
|
|
|
|
|
|
- name: Tidy cache
|
|
|
|
|
shell: pwsh
|
|
|
|
|
- name: Print stats
|
|
|
|
|
shell: bash
|
|
|
|
|
if: steps.cigocacher-setup.outputs.success == 'true'
|
|
|
|
|
run: |
|
|
|
|
|
Get-ChildItem -Path cigocacher -File -Recurse |
|
|
|
|
|
Where-Object { $_.LastAccessTime -lt (Get-Date).AddMinutes(-90) } |
|
|
|
|
|
Remove-Item -Force
|
|
|
|
|
curl -sSL --connect-to "${CONNECT_TO}" -H "Authorization: Bearer ${CIGOCACHER_TOKEN}" "${{ vars.CIGOCACHED_AZURE_URL }}/session/stats" | jq .
|
|
|
|
|
|
|
|
|
|
win-tool-go:
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|