Skip to content

Commit

Permalink
chore: add ci for elf check (#326)
Browse files Browse the repository at this point in the history
* ci: add ci for elf check

* chore(elf): update elfs
  • Loading branch information
fakedev9999 authored and leruaa committed Jan 15, 2025
1 parent 64de2f0 commit 6693663
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/elf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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 programs/range
~/.sp1/bin/cargo-prove prove build --elf-name range-elf --docker --tag v4.0.0-rc.3
cd ../aggregation
~/.sp1/bin/cargo-prove prove build --elf-name aggregation-elf --docker --tag v4.0.0-rc.3
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
Binary file modified elf/aggregation-elf
Binary file not shown.
Binary file modified elf/range-elf
Binary file not shown.

0 comments on commit 6693663

Please sign in to comment.