Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 committed Oct 19, 2024
1 parent ef0fd14 commit 859446a
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build EIP1559-sender

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: windows
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.22
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: go build -v -o EIP1559-sender-${{ matrix.goos }}-${{ matrix.goarch }}

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: EIP1559-sender-${{ matrix.goos }}-${{ matrix.goarch }}
path: EIP1559-sender-${{ matrix.goos }}-${{ matrix.goarch }}

0 comments on commit 859446a

Please sign in to comment.