-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (39 loc) · 1.15 KB
/
rust.yml
File metadata and controls
51 lines (39 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Rust CI
permissions:
contents: read
on:
push:
branches: [main]
pull_request:
jobs:
ci:
name: Rust CI Workflow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: true
components: rustfmt, clippy
toolchain: 1.88.0
- name: Install SP1 toolchain
run: |
curl -L https://sp1.succinct.xyz | bash
~/.sp1/bin/sp1up
~/.sp1/bin/cargo-prove prove --version
- name: Check Formatting (rustfmt)
run: cargo fmt --all -- --check
- name: Install cargo-sort
run: cargo install cargo-sort
- name: Check Dependency Sorting
run: cargo sort --workspace --check
- name: Build Rust Programs
run: cargo build --release --locked
- name: Lint with Clippy
run: cargo clippy --workspace --all-targets --release --locked -- -D warnings