Go 1.21 compatibility #218
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and lint the source code | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: bridges/stellar-evm | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ">=1.21" | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3.5.2 | |
- name: Build | |
run: | | |
export PATH=/home/runner/go/bin:$PATH | |
export GIT_COMMIT=$(git rev-list -1 HEAD) | |
go build -ldflags "-X main.GitCommit=$GIT_COMMIT" . | |
env: | |
GO111MODULE: on |