Skip to content

bump sp1 to v6.1.0

bump sp1 to v6.1.0 #44

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
verify-versions:
runs-on: ubuntu-latest
name: verify versions
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Verify versions.nix matches upstream
run: nix run .#verify-versions
fmt:
runs-on: ubuntu-latest
name: fmt
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check formatting
run: nix fmt -- --check .
check:
strategy:
fail-fast: false
matrix:
runner: [ubuntu-latest, ubuntu-24.04-arm, macos-latest]
sp1-version: [v5.2.4, v6.1.0]
include:
- runner: ubuntu-latest
system: x86_64-linux
- runner: ubuntu-24.04-arm
system: aarch64-linux
- runner: macos-latest
system: aarch64-darwin
runs-on: ${{ matrix.runner }}
name: check (${{ matrix.system }}, ${{ matrix.sp1-version }})
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build cargo-prove
run: nix build '.#legacyPackages.${{ matrix.system }}."${{ matrix.sp1-version }}".cargo-prove' -L
- name: Build sp1-rust-toolchain
run: nix build '.#legacyPackages.${{ matrix.system }}."${{ matrix.sp1-version }}".sp1-rust-toolchain' -L
- name: Build sp1-host-std
run: nix build '.#legacyPackages.${{ matrix.system }}."${{ matrix.sp1-version }}".sp1-host-std' -L
- name: Build sp1-sysroot
run: nix build '.#legacyPackages.${{ matrix.system }}."${{ matrix.sp1-version }}".sp1-sysroot' -L
build:
strategy:
fail-fast: false
matrix:
runner: [ubuntu-latest, ubuntu-24.04-arm, macos-latest]
sp1-version: [v5.2.4, v6.1.0]
include:
- runner: ubuntu-latest
system: x86_64-linux
- runner: ubuntu-24.04-arm
system: aarch64-linux
- runner: macos-latest
system: aarch64-darwin
- sp1-version: v6.1.0
test-app: ./test-app
target: riscv64im-succinct-zkvm-elf
- sp1-version: v5.2.4
test-app: ./test-app-v5
target: riscv32im-succinct-zkvm-elf
runs-on: ${{ matrix.runner }}
name: build (${{ matrix.system }}, ${{ matrix.sp1-version }})
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build ELF via overlay
run: nix build ${{ matrix.test-app }}#fibonacci-elf -L
- name: Build ELF via devshell (cargo prove)
run: nix develop ${{ matrix.test-app }} -c sh -c 'cd ${{ matrix.test-app }}/program && cargo prove build'
verify-elf:
strategy:
fail-fast: false
matrix:
sp1-version: [v5.2.4, v6.1.0]
include:
- sp1-version: v6.1.0
test-app: ./test-app
- sp1-version: v5.2.4
test-app: ./test-app-v5
runs-on: ubuntu-latest
name: verify ELF (${{ matrix.sp1-version }})
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Build ELF via nix
run: nix build ${{ matrix.test-app }}#fibonacci-elf -L
- name: Build verify binary
run: |
cd ${{ matrix.test-app }}/verify
cargo build --release
- name: Execute nix-built ELF
run: ${{ matrix.test-app }}/verify/target/release/verify-elf $GITHUB_WORKSPACE/result/fibonacci-program
- name: Prove nix-built ELF
run: ${{ matrix.test-app }}/verify/target/release/verify-elf $GITHUB_WORKSPACE/result/fibonacci-program --prove