Commit 8ce4e81 1 parent 45bcaa2 commit 8ce4e81 Copy full SHA for 8ce4e81
File tree 1 file changed +65
-0
lines changed
1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Validate Bindings
2
+
3
+ on :
4
+ pull_request :
5
+ branches : ["main"]
6
+
7
+ concurrency :
8
+ group : ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
9
+ cancel-in-progress : true
10
+
11
+ jobs :
12
+ verify-bindings :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ with :
17
+ fetch-depth : 0
18
+ submodules : " recursive"
19
+
20
+ - name : Setup Go
21
+ uses : actions/setup-go@v5
22
+ with :
23
+ go-version : " 1.21.3"
24
+
25
+ - name : Setup Foundry
26
+ uses :
foundry-rs/[email protected]
27
+
28
+ - name : Install Bun
29
+ uses : oven-sh/setup-bun@v2
30
+ with :
31
+ bun-version : 1.1.20
32
+ no-cache : true
33
+ - name : log foundry version
34
+ run : |
35
+ forge --version
36
+ bun --version
37
+ bun pm ls
38
+ - name : Install ABIGen
39
+ run : |
40
+ go install github.com/ethereum/go-ethereum/cmd/[email protected]
41
+
42
+ - name : Generate Bindings
43
+ run : |
44
+ bun install --frozen-lockfile
45
+ bun run build
46
+
47
+ - name : Check for Bindings Changes
48
+ run : |
49
+ changes=$( git status --porcelain -- ./bindings ./src/evm/contracts )
50
+ if [ -n "$changes" ]; then
51
+ echo -e "Changes in Generated Bindings:\n$changes"
52
+ exit 1
53
+ fi
54
+ - name : Upload ts bindings artifact on error
55
+ if : failure()
56
+ uses : actions/upload-artifact@v2
57
+ with :
58
+ name : ts-bindings
59
+ path : ./src/evm/contracts/
60
+ - name : Upload go bindings artifact on error
61
+ if : failure()
62
+ uses : actions/upload-artifact@v2
63
+ with :
64
+ name : go-bindings
65
+ path : ./bindings/
You can’t perform that action at this time.
0 commit comments