Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

# 1. When the workflow runs
on:
push: # any git push
branches: ["**"] # all branches
pull_request: # and every PR

# 2. Single job called "build"
jobs:
build:
runs-on: ubuntu-latest # GitHub-hosted Ubuntu runner
timeout-minutes: 20 # hard stop to avoid hanging

steps:
# -- Step 1: Check out code
- name: Checkout repository
uses: actions/checkout@v4

# -- Step 2: Cache Cargo downloads + build artefacts
# Speeds up repeated runs dramatically
- name: Cache cargo registry + target/
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

# -- Step 3: Install Rust (stable channel, 2024 edition ready)
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy # we need clippy for linting

# -- Step 4: Build & type-check the whole workspace
- name: cargo check
run: cargo check --workspace --all-features --locked

# -- Step 5: Run clippy linter and fail on warnings
- name: cargo clippy (deny warnings)
run: cargo clippy --workspace --all-features --locked -- -D warnings

# -- Step 6: Run the test suite
- name: cargo test
run: cargo test --workspace --all-features --locked
1 change: 0 additions & 1 deletion src/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pub mod build;
pub mod prove;

pub mod evm;

Expand Down
84 changes: 0 additions & 84 deletions src/commands/prove.rs

This file was deleted.

18 changes: 6 additions & 12 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,8 @@ fn handle_clean(cli: &Cli, backend: Backend) -> Result<()> {
if !cli.quiet {
println!("{}", success("Removed target/"));
}
} else {
if !cli.quiet {
println!("{}", info("target/ already clean"));
}
} else if !cli.quiet {
println!("{}", info("target/ already clean"));
}
}
Backend::Bb => {
Expand All @@ -416,10 +414,8 @@ fn handle_clean(cli: &Cli, backend: Backend) -> Result<()> {
if !cli.quiet {
println!("{}", success("Removed target/bb/"));
}
} else {
if !cli.quiet {
println!("{}", info("target/bb/ already clean"));
}
} else if !cli.quiet {
println!("{}", info("target/bb/ already clean"));
}
}
Backend::Starknet => {
Expand All @@ -433,10 +429,8 @@ fn handle_clean(cli: &Cli, backend: Backend) -> Result<()> {
if !cli.quiet {
println!("{}", success("Removed target/starknet/"));
}
} else {
if !cli.quiet {
println!("{}", info("target/starknet/ already clean"));
}
} else if !cli.quiet {
println!("{}", info("target/starknet/ already clean"));
}
}
}
Expand Down
Loading
Loading