Skip to content

Commit 90acda8

Browse files
authoredMar 13, 2025
Enable rustfmt in CI (BitVM#252)
* enable rustfmt in CI * remove ignore in .rustfmt.toml * cargo fmt * remove the condition of draft * run rustfmt before build and guest
1 parent 0c4d463 commit 90acda8

File tree

121 files changed

+4548
-2406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+4548
-2406
lines changed
 

‎.github/workflows/CI.yml

+10
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ env:
1111
CARGO_TERM_COLOR: always
1212

1313
jobs:
14+
rustfmt:
15+
timeout-minutes: 60
16+
runs-on: self-hosted
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Run rustfmt
20+
run: cargo fmt --all -- --check
21+
1422
clippy:
1523
if: github.event.pull_request.draft == false
1624
timeout-minutes: 60
@@ -22,6 +30,7 @@ jobs:
2230

2331
guest:
2432
if: github.event.pull_request.draft == false
33+
needs: rustfmt
2534
timeout-minutes: 60
2635
runs-on: self-hosted
2736
steps:
@@ -33,6 +42,7 @@ jobs:
3342
3443
build:
3544
if: github.event.pull_request.draft == false
45+
needs: rustfmt
3646
timeout-minutes: 60
3747
runs-on: self-hosted
3848
steps:

‎.rustfmt.toml

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
fn_single_line = true
2-
ignore = [
3-
"src/utils/merkle.rs",
4-
]
52

63

0 commit comments

Comments
 (0)
Please sign in to comment.