Skip to content

Commit

Permalink
feat: repro builds elf
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Jan 15, 2025
1 parent 58bf3dd commit 786d43e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/elf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: ELF

on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:

jobs:
elf:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Install SP1 toolchain
run: |
curl -L https://sp1.succinct.xyz | bash
~/.sp1/bin/sp1up
~/.sp1/bin/cargo-prove prove --version
source ~/.bashrc
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Verify the OP Succinct binaries
run: |
# Build the binaries
cd program
~/.sp1/bin/cargo-prove prove build --elf-name sp1-helios-elf --docker --tag v4.0.0-rc.10
cd ../../
# Check for any changes in the elf directory
if [ -n "$(git status --porcelain elf/)" ]; then
echo "❌ ELF files changed during build!"
git diff elf/
exit 1
else
echo "✅ ELF files remained unchanged"
fi
2 changes: 1 addition & 1 deletion book/reproducible-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Then build the binaries:
cd program

# Builds the SP1 Helios binary using the corresponding Docker tag, output directory and ELF name.
cargo prove build --docker --tag v4.0.0-rc.3 --elf-name sp1-helios-elf
cargo prove build --docker --tag v4.0.0-rc.10 --elf-name sp1-helios-elf
```

Now, verify the binaries by confirming the output of `vkey` matches the vkeys on the contract. The `vkey` program outputs the verification key
Expand Down

0 comments on commit 786d43e

Please sign in to comment.