-
Notifications
You must be signed in to change notification settings - Fork 25
57 lines (49 loc) · 1.42 KB
/
bindings.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
49
50
51
52
53
54
55
56
57
name: Validate Bindings
on:
pull_request:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
verify-bindings:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "recursive"
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21.3"
- name: Setup Foundry
uses: foundry-rs/foundry-toolchain@v1.2.0
- name: Install Bun
uses: oven-sh/setup-bun@v2
- name: Install ABIGen
run: |
go install github.com/ethereum/go-ethereum/cmd/abigen@v1.13.5
- name: Generate Bindings
run: |
bun install
bun run build
- name: Check for Bindings Changes
run: |
changes=$( git status --porcelain -- ./bindings ./src/evm/contracts )
if [ -n "$changes" ]; then
echo -e "Changes in Generated Bindings:\n$changes"
exit 1
fi
- name: Upload ts bindings artifact on error
if: failure()
uses: actions/upload-artifact@v4
with:
name: ts-bindings
path: ./src/evm/contracts/
- name: Upload go bindings artifact on error
if: failure()
uses: actions/upload-artifact@v4
with:
name: go-bindings
path: ./bindings/