-
Notifications
You must be signed in to change notification settings - Fork 27
48 lines (39 loc) · 1.15 KB
/
abi_bindings_checker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: ABI Go Bindings Checker
on:
push:
branches:
- main
pull_request:
branches:
- "**"
jobs:
abi_binding:
name: abi_binding
runs-on: ubuntu-22.04
steps:
- name: Checkout Teleporter repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Install Foundry
run: ./scripts/install_foundry.sh
- name: Install solc
run: |
source ./scripts/versions.sh
wget https://github.com/ethereum/solidity/releases/download/v$SOLIDITY_VERSION/solc-static-linux
chmod +x solc-static-linux
sudo mv solc-static-linux /usr/local/bin/solc
- 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