Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add job to check the bindings are up to date #475

Merged
merged 29 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
02b1cf2
update bindings
ricomateo Jan 27, 2025
ed18c35
add ci job to check the bindings
ricomateo Jan 27, 2025
83fafb0
fix target in job
ricomateo Jan 27, 2025
c59e338
add step to install foundry
ricomateo Jan 27, 2025
3b2d640
change generate.sh script to exit on error
ricomateo Jan 27, 2025
afbbf5a
remove git clone when generating eigenpod bindings
ricomateo Jan 27, 2025
2014a04
clone eigenlayer-contracts using https url
ricomateo Jan 27, 2025
a93e298
fix eigenlayer-contracts url
ricomateo Jan 27, 2025
cdf625a
add steps to install go and abigen
ricomateo Jan 27, 2025
5260049
run git diff with sudo
ricomateo Jan 27, 2025
65b41b6
add step to show abigen version
ricomateo Jan 27, 2025
1fe7254
change ubuntu version to 22.04
ricomateo Jan 27, 2025
2111809
remove unnecessary pwd
ricomateo Jan 27, 2025
03c7a7f
check the diff with git diff
ricomateo Jan 28, 2025
589fafb
remove fail-fast and add merge_group
ricomateo Jan 28, 2025
dd47790
Merge branch 'dev' into check-bindings-in-ci
ricomateo Jan 29, 2025
0ba7144
Merge branch 'dev' into check-bindings-in-ci
ricomateo Jan 29, 2025
2835753
change ubuntu to latest
ricomateo Jan 30, 2025
be717e6
unpin solc version
ricomateo Jan 30, 2025
75af45b
check the bindings are up-to-date only when the contracts change
ricomateo Jan 30, 2025
47350d3
revert changes to foundry.toml
ricomateo Jan 30, 2025
d8cb9b1
add end of line in bindings.yml
ricomateo Jan 30, 2025
58b0c8d
change a contract to check if the job is triggered
ricomateo Jan 30, 2025
28a620e
check if bindings have changed using the action
ricomateo Jan 30, 2025
668d0b1
fix if condition
ricomateo Jan 30, 2025
b2b86eb
change binding to check if the job passes
ricomateo Jan 30, 2025
b4ac3c3
fix step name
ricomateo Jan 30, 2025
0d11d40
revert changes to bindings and contracts
ricomateo Jan 30, 2025
69d18bb
update doc comment in the workflow
ricomateo Jan 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/bindings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Bindings

on:
push:
branches:
- dev
pull_request:
merge_group:

permissions:
contents: read

jobs:
check:
name: Check bindings are up to date
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install go1.21
uses: actions/setup-go@v5
with:
go-version: "1.21"

- name: Add Ethereum PPA
run: sudo add-apt-repository -y ppa:ethereum/ethereum

- name: Install Abigen
run: sudo apt-get update && sudo apt-get install ethereum

- name: Show abigen version
run: abigen --version

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: v0.3.0

- name: run make bindings and check for diffs
run: |
make bindings
sudo git diff --exit-code
Loading