Skip to content
24 changes: 24 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,30 @@ env:
CARGO_TERM_COLOR: always

jobs:
build-sp1:
runs-on: ubuntu-latest
needs: [cargo-fmt, cargo-clippy]

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl git
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl git

we don't need this


- name: Install toolchain
run: |
curl -L https://sp1up.succinct.xyz | bash
source ~/.bashrc
export PATH=$PATH:~/.sp1/bin
sp1up
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
source ~/.bashrc
export PATH=$PATH:~/.sp1/bin
sp1up
/home/runner/.sp1/bin/sp1up

You can simplify this like you did for risc0

rustup default succinct

- name: Build SP1
run: cargo build --target=riscv32im-succinct-zkvm-elf -p ream-consensus -p ream-bls

build-risc0:
runs-on: ubuntu-latest
needs: [cargo-fmt, cargo-clippy]
Expand Down