ci: run the whole verify suite on the self-hosted windows runner
All three jobs move to [self-hosted, windows]. The race job now adds the machine-wide MSYS2 mingw64 toolchain to GITHUB_PATH: the runner service account only sees the machine PATH, which has no C compiler, so -race could not build its cgo runtime. The dead verify.yml.selfrun file goes away — GitHub never reads that suffix and its content already lives here.
This commit is contained in:
parent
0f3e592957
commit
9454da3ab3
2 changed files with 9 additions and 36 deletions
12
.github/workflows/verify.yml
vendored
12
.github/workflows/verify.yml
vendored
|
|
@ -9,7 +9,7 @@ permissions:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
verify:
|
verify:
|
||||||
runs-on: self-hosted
|
runs-on: [self-hosted, windows]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
|
|
@ -21,19 +21,25 @@ jobs:
|
||||||
- run: go test ./...
|
- run: go test ./...
|
||||||
|
|
||||||
race:
|
race:
|
||||||
runs-on: ubuntu-latest
|
runs-on: [self-hosted, windows]
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.26.x'
|
go-version: '1.26.x'
|
||||||
cache: true
|
cache: true
|
||||||
|
# The runner service account carries only the machine PATH, which has no
|
||||||
|
# C compiler; point at the machine-wide MSYS2 mingw64 toolchain so the
|
||||||
|
# race detector can build its cgo runtime.
|
||||||
|
- run: Add-Content $env:GITHUB_PATH 'C:\msys64\mingw64\bin'
|
||||||
# Density-based world tests are intentionally exhaustive and race adds
|
# Density-based world tests are intentionally exhaustive and race adds
|
||||||
# substantial overhead; keep the package timeout above the normal 10m.
|
# substantial overhead; keep the package timeout above the normal 10m.
|
||||||
- run: go test -race -timeout 20m ./...
|
- run: go test -race -timeout 20m ./...
|
||||||
|
|
||||||
parity:
|
parity:
|
||||||
runs-on: ubuntu-latest
|
runs-on: [self-hosted, windows]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
|
|
|
||||||
33
.github/workflows/verify.yml.selfrun
vendored
33
.github/workflows/verify.yml.selfrun
vendored
|
|
@ -1,33 +0,0 @@
|
||||||
name: verify
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
verify:
|
|
||||||
runs-on: [self-hosted, windows]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- run: go build ./...
|
|
||||||
- run: go vet ./...
|
|
||||||
- run: go test ./...
|
|
||||||
|
|
||||||
race:
|
|
||||||
runs-on: [self-hosted, windows]
|
|
||||||
env:
|
|
||||||
CGO_ENABLED: 1
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
# Density-based world tests are intentionally exhaustive and race adds
|
|
||||||
# substantial overhead; keep the package timeout above the normal 10m.
|
|
||||||
- run: go test -race -timeout 20m ./...
|
|
||||||
|
|
||||||
parity:
|
|
||||||
runs-on: [self-hosted, windows]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- run: go test ./internal/world -run TestVanillaBlockParity -count=1 -v
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue