Skip to content

feature: core refactor #32

feature: core refactor

feature: core refactor #32

Workflow file for this run

name: Rust CI
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
jobs:
check:
name: Check and Lint
runs-on: ubuntu-20.04
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
PATH: "~/.sp1/bin:$PATH"
steps:
- uses: actions/checkout@v4
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.81.0
components: clippy
- name: Install SP1 toolchain
run: |
curl -L https://sp1.succinct.xyz | bash
sp1up
cargo prove --version
env:
PATH: "~/.sp1/bin:$PATH"
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
toolchain: nightly
args: --all -- --check
env:
CARGO_INCREMENTAL: 1
PATH: "~/.sp1/bin:$PATH"
- name: Run cargo clippy
uses: actions-rs/cargo@v1
env:
CARGO_INCREMENTAL: 1
PATH: "~/.sp1/bin:$PATH"
with:
command: clippy
args: --all-features --all-targets -- -D warnings -A incomplete-features