merge with main yml file

This commit is contained in:
Sina Mahmoodi 2026-04-17 08:43:33 +00:00
parent 05663ab790
commit 30e665d1dd
2 changed files with 41 additions and 43 deletions

View file

@ -97,3 +97,44 @@ jobs:
- name: Run tests
run: go run build/ci.go test -p 8
windows:
name: Windows ${{ matrix.arch }}
needs: lint
runs-on: [self-hosted, windows, x64]
strategy:
fail-fast: false
matrix:
include:
- arch: amd64
mingw: 'C:\msys64\mingw64'
test: true
- arch: '386'
mingw: 'C:\msys64\mingw32'
test: false
env:
GETH_MINGW: ${{ matrix.mingw }}
GETH_CC: ${{ matrix.mingw }}\bin\gcc.exe
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: false
- name: Build
shell: cmd
run: |
set PATH=%GETH_MINGW%\bin;%PATH%
go run build/ci.go install -arch ${{ matrix.arch }} -cc %GETH_CC%
- name: Run tests
if: matrix.test
shell: cmd
run: |
set PATH=%GETH_MINGW%\bin;%PATH%
go run build/ci.go test -arch ${{ matrix.arch }} -cc %GETH_CC% -short -p 8

View file

@ -1,43 +0,0 @@
name: Windows Runner Smoke Test
on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/windows-smoke.yml'
jobs:
windows:
name: Windows amd64
runs-on: [self-hosted, windows, x64]
env:
GETH_MINGW: 'C:\msys64\mingw64'
GETH_CC: 'C:\msys64\mingw64\bin\gcc.exe'
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: false
- name: Show tool versions
shell: cmd
run: |
go version
"%GETH_CC%" --version
- name: Build
shell: cmd
run: |
set PATH=%GETH_MINGW%\bin;%PATH%
go run build/ci.go install -arch amd64 -cc %GETH_CC%
- name: Test
shell: cmd
run: |
set PATH=%GETH_MINGW%\bin;%PATH%
go run build/ci.go test -arch amd64 -cc %GETH_CC% -short -p 8