Skip to content

Commit 04b2b91

Browse files
Run clippy correctly, run it on build_system as well and run it earlier
1 parent 05af962 commit 04b2b91

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,20 @@ jobs:
8282
#path: rust
8383
#key: ${{ runner.os }}-packages-${{ hashFiles('rust/.git/HEAD') }}
8484

85+
- name: Prepare
86+
run: ./y.sh prepare --only-libcore
87+
88+
- name: Check formatting
89+
run: ./y.sh fmt --check
90+
91+
- name: Prepare - name: clippy
92+
run: |
93+
cargo clippy --all-targets -- -D warnings
94+
cargo clippy --all-targets --no-default-features -- -D warnings
95+
cd build_system && cargo clippy --all-targets -- -D warnings
96+
8597
- name: Build
8698
run: |
87-
./y.sh prepare --only-libcore
8899
./y.sh build --sysroot
89100
./y.sh test --cargo-tests
90101
@@ -106,14 +117,6 @@ jobs:
106117
run: |
107118
./y.sh test --release --clean --build-sysroot ${{ matrix.commands }}
108119
109-
- name: Check formatting
110-
run: ./y.sh fmt --check
111-
112-
- name: clippy
113-
run: |
114-
cargo clippy --all-targets -- -D warnings
115-
cargo clippy --all-targets --features master -- -D warnings
116-
117120
duplicates:
118121
runs-on: ubuntu-24.04
119122
steps:

0 commit comments

Comments
 (0)