Skip to content

Commit 1962c54

Browse files
committed
clippy generated code
1 parent b11de59 commit 1962c54

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
ci:
1010
name: CI
1111
runs-on: ubuntu-latest
12-
needs: [check, ci-linux, ci-serde]
12+
needs: [check, ci-linux, ci-clippy, ci-serde]
1313
steps:
1414
- name: Done
1515
run: exit 0
@@ -122,7 +122,32 @@ jobs:
122122
- name: Run CI script for `${{ matrix.vendor }}` under rust `${{ matrix.rust }}` with options=`${{ matrix.options }}`
123123
env:
124124
VENDOR: ${{ matrix.vendor }}
125-
OPTIONS: ${{ matrix.options }}
125+
OPTIONS: ${{ matrix.options }}
126+
COMMAND: check
127+
run: bash ci/script.sh
128+
129+
ci-clippy:
130+
runs-on: ubuntu-latest
131+
needs: [check, prebuild]
132+
steps:
133+
- uses: actions/checkout@v3
134+
135+
- uses: actions-rs/toolchain@v1
136+
with:
137+
profile: minimal
138+
toolchain: stable
139+
override: true
140+
141+
- name: Cache
142+
uses: Swatinem/rust-cache@v1
143+
with:
144+
sharedKey: prebuilded-v0.22
145+
146+
- name: Run CI script
147+
env:
148+
VENDOR: RISC-V
149+
OPTIONS: all
150+
COMMAND: clippy
126151
run: bash ci/script.sh
127152

128153
ci-serde:

ci/script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test_svd() {
1515

1616
popd
1717

18-
cargo check --manifest-path $td/Cargo.toml
18+
cargo $COMMAND --manifest-path $td/Cargo.toml
1919
}
2020

2121
test_svd_for_target() {
@@ -29,7 +29,7 @@ test_svd_for_target() {
2929

3030
popd
3131

32-
cargo check --manifest-path $td/Cargo.toml
32+
cargo $COMMAND --manifest-path $td/Cargo.toml
3333
}
3434

3535
main() {

0 commit comments

Comments
 (0)