mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Port CI pipeline from suave-geth.
This commit is contained in:
parent
7141a37c67
commit
a3732e9a33
1 changed files with 19 additions and 13 deletions
32
.github/workflows/go.yml
vendored
32
.github/workflows/go.yml
vendored
|
|
@ -1,23 +1,29 @@
|
||||||
name: i386 linux tests
|
name: Run unit tests on Linux
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ main ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
CGO_CFLAGS_ALLOW: "-O -D__BLST_PORTABLE__"
|
||||||
|
CGO_CFLAGS: "-O -D__BLST_PORTABLE__"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go-version: [ '1.20', '1.21.x' ]
|
||||||
|
goarch: [amd64, arm64]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Go
|
- name: Setup Go ${{ matrix.go-version }}
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.21.4
|
go-version: ${{ matrix.go-version }}
|
||||||
- name: Run tests
|
- name: Run unit tests
|
||||||
run: go test -short ./...
|
run: go test -short ./accounts ./cmd/geth ./core ./core/types ./core/vm ./eth/... ./internal/ethapi/... ./miner ./params ./suave/...
|
||||||
env:
|
|
||||||
GOOS: linux
|
|
||||||
GOARCH: 386
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue