Skip to content

Commit

Permalink
feat: refactor make workspace (#42)
Browse files Browse the repository at this point in the history
* refactor

* fix

* fix

* fix
  • Loading branch information
lightsing authored Sep 2, 2024
1 parent b15a5dd commit a4a7fd4
Show file tree
Hide file tree
Showing 33 changed files with 503 additions and 415 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ jobs:
name: Clippy
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
matrix:
target: [ "--all-targets", "--bin stateless-block-verifier" ]
features: [ "--features=\"bin-deps\"", "--features=\"bin-deps, dev\"", "--all-features" ]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
Expand All @@ -61,8 +57,18 @@ jobs:
components: clippy
- name: cargo cache
uses: Swatinem/rust-cache@v2
- name: clippy
run: cargo clippy --workspace ${{ matrix.target }} ${{ matrix.features }} -- -D warnings
- name: clippy default
run: cargo clippy --workspace -- -D warnings
- name: clippy dev
run: cargo clippy --workspace --features dev -- -D warnings
- name: clippy metrics
run: cargo clippy --workspace --features metrics -- -D warnings
- name: clippy all
run: cargo clippy --workspace --all-features -- -D warnings
- name: clippy test
run: cargo clippy --workspace --tests -- -D warnings
- name: clippy test all
run: cargo clippy --workspace --tests --all-features -- -D warnings

integration-tests:
needs: [ clippy ]
Expand All @@ -88,5 +94,5 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
- run: cargo run --release --features bin-deps --package stateless-block-verifier --bin stateless-block-verifier -- -k run-file testdata/mainnet_blocks/flatten-proofs/*
- run: cargo run --release --features bin-deps --package stateless-block-verifier --bin stateless-block-verifier -- -k run-file testdata/sepolia_blocks/*
- run: cargo run --release --package stateless-block-verifier -- -k run-file testdata/mainnet_blocks/flatten-proofs/*
- run: cargo run --release --package stateless-block-verifier -- -k run-file testdata/sepolia_blocks/*
Loading

0 comments on commit a4a7fd4

Please sign in to comment.