Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Workflow for SP1 Toolkit Installation and Program Build #12

Open
srdtrk opened this issue Jun 21, 2024 · 0 comments
Open

Add GitHub Workflow for SP1 Toolkit Installation and Program Build #12

srdtrk opened this issue Jun 21, 2024 · 0 comments

Comments

@srdtrk
Copy link

srdtrk commented Jun 21, 2024

Implement a GitHub Actions workflow to install the SP1 toolkit and build the program using cargo-prove. This ensures that users do not break the program with their changes.

Workflow

name: Program

on: 
  workflow_dispatch:
  push:
    branches: [ main ]
  pull_request:

env:
  FOUNDRY_PROFILE: ci

jobs:
  check:
    strategy:
      fail-fast: true

    name: Build
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: recursive

      - name: Install rust toolchain
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: nightly-2024-04-17
          override: true

      - name: Install SP1 toolchain
        run: |
          curl -L https://sp1.succinct.xyz | bash
          ~/.config/.sp1/bin/sp1up 
          ~/.config/.sp1/bin/cargo-prove prove --version

      - name: Build SP1 program
        run: |
          cd program
          ~/.config/.sp1/bin/cargo-prove prove build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant