Skip to content

Commit a4a7fd4

Browse files
authored
feat: refactor make workspace (#42)
* refactor * fix * fix * fix
1 parent b15a5dd commit a4a7fd4

33 files changed

+503
-415
lines changed

.github/workflows/ci.yml

+14-8
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ jobs:
4949
name: Clippy
5050
timeout-minutes: 30
5151
runs-on: ubuntu-latest
52-
strategy:
53-
matrix:
54-
target: [ "--all-targets", "--bin stateless-block-verifier" ]
55-
features: [ "--features=\"bin-deps\"", "--features=\"bin-deps, dev\"", "--all-features" ]
5652
steps:
5753
- uses: actions/checkout@v4
5854
- uses: dtolnay/rust-toolchain@master
@@ -61,8 +57,18 @@ jobs:
6157
components: clippy
6258
- name: cargo cache
6359
uses: Swatinem/rust-cache@v2
64-
- name: clippy
65-
run: cargo clippy --workspace ${{ matrix.target }} ${{ matrix.features }} -- -D warnings
60+
- name: clippy default
61+
run: cargo clippy --workspace -- -D warnings
62+
- name: clippy dev
63+
run: cargo clippy --workspace --features dev -- -D warnings
64+
- name: clippy metrics
65+
run: cargo clippy --workspace --features metrics -- -D warnings
66+
- name: clippy all
67+
run: cargo clippy --workspace --all-features -- -D warnings
68+
- name: clippy test
69+
run: cargo clippy --workspace --tests -- -D warnings
70+
- name: clippy test all
71+
run: cargo clippy --workspace --tests --all-features -- -D warnings
6672

6773
integration-tests:
6874
needs: [ clippy ]
@@ -88,5 +94,5 @@ jobs:
8894
with:
8995
toolchain: ${{ matrix.rust }}
9096
- uses: Swatinem/rust-cache@v2
91-
- run: cargo run --release --features bin-deps --package stateless-block-verifier --bin stateless-block-verifier -- -k run-file testdata/mainnet_blocks/flatten-proofs/*
92-
- run: cargo run --release --features bin-deps --package stateless-block-verifier --bin stateless-block-verifier -- -k run-file testdata/sepolia_blocks/*
97+
- run: cargo run --release --package stateless-block-verifier -- -k run-file testdata/mainnet_blocks/flatten-proofs/*
98+
- run: cargo run --release --package stateless-block-verifier -- -k run-file testdata/sepolia_blocks/*

0 commit comments

Comments
 (0)