Skip to content

Workflow file for this run

name: Build Program
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
env:
FOUNDRY_PROFILE: ci
jobs:
check:
strategy:
fail-fast: true
matrix:
rust-version: [stable]
os: [ubuntu-latest, macos-latest]
name: Build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache Rust build files
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.81.0
- name: Install SP1 toolchain
run: |
curl -L https://sp1.succinct.xyz | bash
~/.sp1/bin/sp1up
~/.sp1/bin/cargo-prove prove --version
- name: Run test
uses: taiki-e/install-action@nextest
env:
RPC_URL: ${{ secrets.RPC_URL }}
run: |
cd lib
cargo nextest
cd ../
- name: Run online mode
env:
RPC_URL: ${{ secrets.RPC_URL }}
run: |
cd program
cargo run -r
cd ../
- name: Build SP1 program
run: |
cd program
~/.sp1/bin/cargo-prove prove build
cd ../
# - name: Run script
# run: |
# cd script
# RUST_LOG=info cargo run -r -- --execute
# cd ../