Skip to content

Go 1.21 compatibility #218

Go 1.21 compatibility

Go 1.21 compatibility #218

Workflow file for this run

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