File tree 2 files changed +28
-3
lines changed 2 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 9
9
ci :
10
10
name : CI
11
11
runs-on : ubuntu-latest
12
- needs : [check, ci-linux, ci-serde]
12
+ needs : [check, ci-linux, ci-clippy, ci- serde]
13
13
steps :
14
14
- name : Done
15
15
run : exit 0
@@ -120,9 +120,34 @@ jobs:
120
120
sharedKey : prebuilded-v0.22
121
121
122
122
- 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
123
147
env :
124
148
VENDOR : ${{ matrix.vendor }}
125
149
OPTIONS : ${{ matrix.options }}
150
+ COMMAND : clippy
126
151
run : bash ci/script.sh
127
152
128
153
ci-serde :
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ test_svd() {
15
15
16
16
popd
17
17
18
- cargo check --manifest-path $td /Cargo.toml
18
+ cargo $COMMAND --manifest-path $td /Cargo.toml
19
19
}
20
20
21
21
test_svd_for_target () {
@@ -29,7 +29,7 @@ test_svd_for_target() {
29
29
30
30
popd
31
31
32
- cargo check --manifest-path $td /Cargo.toml
32
+ cargo $COMMAND --manifest-path $td /Cargo.toml
33
33
}
34
34
35
35
main () {
You can’t perform that action at this time.
0 commit comments