Skip to content

Commit 7343d14

Browse files
committed
clippy generated code
1 parent b11de59 commit 7343d14

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 1 deletion
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
@@ -120,9 +120,34 @@ jobs:
120120
sharedKey: prebuilded-v0.22
121121

122122
- name: Run CI script for `${{ matrix.vendor }}` under rust `${{ matrix.rust }}` with options=`${{ matrix.options }}`
123+
env:
124+
VENDOR: RISC-V
125+
OPTIONS: all
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
123147
env:
124148
VENDOR: ${{ matrix.vendor }}
125149
OPTIONS: ${{ matrix.options }}
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)