Skip to content

Commit

Permalink
ci: use self-hosted windows for ut (#1274)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaost authored Feb 6, 2025
1 parent 9249c6e commit 9c05c0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [ pull_request ]

jobs:
compliant:
runs-on: [ self-hosted, X64 ]
runs-on: [ self-hosted, Linux, X64 ]
steps:
- uses: actions/checkout@v3

Expand All @@ -15,7 +15,7 @@ jobs:
uses: crate-ci/typos@master

lint:
runs-on: [ self-hosted, X64 ]
runs-on: [ self-hosted, Linux, X64 ]
steps:
- uses: actions/checkout@v4
- name: Set up Go
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
version: ["1.17", "1.18", "1.19"]
runs-on: [self-hosted, X64]
runs-on: [self-hosted, Linux, X64]
steps:
- uses: actions/checkout@v4
- name: Set up Go
Expand All @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
version: ["1.20", "1.21", "1.22", "1.23"]
runs-on: [self-hosted, X64]
runs-on: [self-hosted, Linux, X64]
steps:
- uses: actions/checkout@v4
- name: Set up Go
Expand All @@ -37,16 +37,14 @@ jobs:
run: go test -race ./...

ut-windows:
runs-on: windows-latest
env: # Fixes https://github.com/actions/setup-go/issues/240
GOMODCACHE: 'D:\go\pkg\mod'
GOCACHE: 'D:\go\go-build'
runs-on: [self-hosted, Windows]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
cache: false # don't use cache for self-hosted runners

- name: Unit Test
run: go test -race ./...
Expand Down

0 comments on commit 9c05c0a

Please sign in to comment.