Skip to content

Golang 1.20.12

Golang 1.20.12 #792

name: ABI Go Bindings Checker
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
abi_binding:
name: abi_binding
runs-on: ubuntu-20.04
steps:
- name: Checkout Teleporter repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set Go version
run: |
source ./scripts/versions.sh
GO_VERSION=$GO_VERSION >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Install Foundry
run: ./scripts/install_foundry.sh
- name: Generate ABI Go bindings
run: |
export PATH=$PATH:$HOME/.foundry/bin
export GOPATH=$HOME/go
export PATH="$PATH:$GOPATH/bin"
./scripts/abi_bindings.sh
- name: Print diff
run: git --no-pager diff -- abi-bindings/**.go
- name: Fail if diff exists
run: git --no-pager diff --quiet -- abi-bindings/**.go