Skip to content

Commit aa9a4a1

Browse files
authored
chore: add ci for elf check (#326)
* ci: add ci for elf check * chore(elf): update elfs
1 parent 56e7369 commit aa9a4a1

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

.github/workflows/elf.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: ELF
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
elf:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.event.pull_request.head.ref }}
20+
- name: Install SP1 toolchain
21+
run: |
22+
curl -L https://sp1.succinct.xyz | bash
23+
~/.sp1/bin/sp1up
24+
~/.sp1/bin/cargo-prove prove --version
25+
source ~/.bashrc
26+
- name: Setup Docker Buildx
27+
uses: docker/setup-buildx-action@v3
28+
- name: Verify the OP Succinct binaries
29+
run: |
30+
# Build the binaries
31+
cd programs/range
32+
~/.sp1/bin/cargo-prove prove build --elf-name range-elf --docker --tag v4.0.0-rc.3
33+
cd ../aggregation
34+
~/.sp1/bin/cargo-prove prove build --elf-name aggregation-elf --docker --tag v4.0.0-rc.3
35+
cd ../../
36+
37+
# Check for any changes in the elf directory
38+
if [ -n "$(git status --porcelain elf/)" ]; then
39+
echo "❌ ELF files changed during build!"
40+
git diff elf/
41+
exit 1
42+
else
43+
echo "✅ ELF files remained unchanged"
44+
fi

elf/aggregation-elf

184 Bytes
Binary file not shown.

elf/range-elf

216 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)