Merge pull request #8 from flashbots/fix/test-non-i386-arches

Fix CI
This commit is contained in:
Louis Thibault 2024-01-26 16:28:17 +01:00 committed by GitHub
commit 70970a255a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 31 additions and 26 deletions

28
.github/workflows/checks.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Run unit tests on Linux
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
env:
CGO_CFLAGS_ALLOW: "-O -D__BLST_PORTABLE__"
CGO_CFLAGS: "-O -D__BLST_PORTABLE__"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.20', '1.21.x' ]
# goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Run unit tests
run: go test -short ./accounts ./cmd/geth ./core ./core/types ./core/vm ./eth/... ./internal/ethapi/... ./miner ./params ./suave/...

View file

@ -1,23 +0,0 @@
name: i386 linux tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.4
- name: Run tests
run: go test -short ./...
env:
GOOS: linux
GOARCH: 386

View file

@ -118,7 +118,7 @@ func defaultNodeConfig() node.Config {
cfg.Name = clientIdentifier
cfg.Version = params.VersionWithCommit(git.Commit, git.Date)
cfg.HTTPModules = append(cfg.HTTPModules, "eth", "suavex")
cfg.WSModules = append(cfg.WSModules, "eth")
cfg.WSModules = append(cfg.WSModules, "eth", "suavex")
cfg.IPCPath = "geth.ipc"
return cfg
}

View file

@ -30,8 +30,8 @@ import (
)
const (
ipcAPIs = "admin:1.0 clique:1.0 debug:1.0 engine:1.0 eth:1.0 miner:1.0 net:1.0 rpc:1.0 txpool:1.0 web3:1.0"
httpAPIs = "eth:1.0 net:1.0 rpc:1.0 web3:1.0"
ipcAPIs = "admin:1.0 clique:1.0 debug:1.0 engine:1.0 eth:1.0 miner:1.0 net:1.0 rpc:1.0 suavex:1.0 txpool:1.0 web3:1.0"
httpAPIs = "eth:1.0 net:1.0 rpc:1.0 suavex:1.0 web3:1.0"
)
// spawns geth with the given command line args, using a set of flags to minimise