From a3732e9a332ad892dcb778427f5a2f288bf9c441 Mon Sep 17 00:00:00 2001 From: Louis Thibault <9452561+lthibault@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:56:59 -0500 Subject: [PATCH] Port CI pipeline from suave-geth. --- .github/workflows/go.yml | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0c673d15f1..289508eb41 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,23 +1,29 @@ -name: i386 linux tests +name: Run unit tests on Linux on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] workflow_dispatch: +env: + CGO_CFLAGS_ALLOW: "-O -D__BLST_PORTABLE__" + CGO_CFLAGS: "-O -D__BLST_PORTABLE__" + jobs: build: - runs-on: self-hosted + runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.20', '1.21.x' ] + goarch: [amd64, arm64] + steps: - - uses: actions/checkout@v2 - - name: Set up Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v4 with: - go-version: 1.21.4 - - name: Run tests - run: go test -short ./... - env: - GOOS: linux - GOARCH: 386 + 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/...