@@ -33,10 +33,15 @@ jobs:
33
33
- name : cargo xtask fmt
34
34
run : cargo xtask --verbose fmt -c
35
35
36
- # Compilation check
37
- check :
38
- name : check
39
- runs-on : ubuntu-22.04
36
+ # Verify all examples, checks
37
+ check-clippy :
38
+ uses : ./.github/workflows/clippy-check-example.yml
39
+ with :
40
+ backend : ${{ matrix.input.backend }}
41
+ platform : ${{ matrix.input.platform }}
42
+ rustup-target : ${{ matrix.input.rustup-target }}
43
+ example-args : ${{ matrix.input.example-args }}
44
+
40
45
strategy :
41
46
matrix :
42
47
input :
51
56
- backend : thumbv8-base
52
57
platform : lm3s6965
53
58
rustup-target : thumbv8m.base-none-eabi
59
+ example-args : --exampleexclude pool example-check
54
60
55
61
- backend : thumbv8-main
56
62
platform : lm3s6965
67
73
- backend : riscv-esp32-c3
68
74
platform : esp32-c3
69
75
rustup-target : riscv32imc-unknown-none-elf
70
- steps :
71
- - name : Checkout
72
- uses : actions/checkout@v4
73
-
74
- - name : Configure Rust target ${{ matrix.input.rustup-target }}
75
- run : rustup target add ${{ matrix.input.rustup-target }}
76
-
77
- - name : Cache Dependencies
78
- uses : Swatinem/rust-cache@v2
79
-
80
- - run : cargo xtask --deny-warnings --platform ${{ matrix.input.platform }} --backend ${{ matrix.input.backend }} check
81
76
82
77
# Clippy
83
- # TODO: clippy esp32-c3
78
+ # TODO: put in clippy-check-example once esp32-c3 clippy is fixed
84
79
clippy :
85
80
name : clippy
86
81
runs-on : ubuntu-22.04
@@ -126,59 +121,6 @@ jobs:
126
121
127
122
- run : cargo xtask --deny-warnings --platform ${{ matrix.input.platform }} --backend ${{ matrix.input.backend }} clippy
128
123
129
- # Verify all examples, checks
130
- checkexamples :
131
- name : check examples
132
- runs-on : ubuntu-22.04
133
- strategy :
134
- matrix :
135
- input :
136
- - backend : thumbv7
137
- platform : lm3s6965
138
- rustup-target : thumbv7m-none-eabi
139
-
140
- - backend : thumbv6
141
- platform : lm3s6965
142
- rustup-target : thumbv6m-none-eabi
143
-
144
- - backend : thumbv8-base
145
- platform : lm3s6965
146
- rustup-target : thumbv8m.base-none-eabi
147
-
148
- - backend : thumbv8-main
149
- platform : lm3s6965
150
- rustup-target : thumbv8m.main-none-eabi
151
-
152
- - backend : riscv32-imc-clint
153
- platform : hifive1
154
- rustup-target : riscv32imc-unknown-none-elf
155
-
156
- - backend : riscv32-imc-mecall
157
- platform : hifive1
158
- rustup-target : riscv32imc-unknown-none-elf
159
-
160
- - backend : riscv-esp32-c3
161
- platform : esp32-c3
162
- rustup-target : riscv32imc-unknown-none-elf
163
-
164
- steps :
165
- - name : Checkout
166
- uses : actions/checkout@v4
167
-
168
- - name : Configure Rust target ${{ matrix.input.rustup-target }}
169
- run : rustup target add ${{ matrix.input.rustup-target }}
170
-
171
- - name : Cache Dependencies
172
- uses : Swatinem/rust-cache@v2
173
-
174
- - name : Check the examples
175
- if : ${{ matrix.input.backend == 'thumbv8-base' }}
176
- run : cargo xtask --platform ${{ matrix.input.platform }} --backend ${{ matrix.input.backend }} --exampleexclude pool example-check
177
-
178
- - name : Check the examples
179
- if : ${{ matrix.input.backend != 'thumbv8-base' }}
180
- run : cargo xtask --platform ${{ matrix.input.platform }} --backend ${{ matrix.input.backend }} example-check
181
-
182
124
buildqemu :
183
125
name : Get modern QEMU, build and store
184
126
runs-on : ubuntu-22.04
@@ -763,9 +705,7 @@ jobs:
763
705
if : github.event_name == 'push' && success()
764
706
needs :
765
707
- formatcheck
766
- - check
767
- - clippy
768
- - checkexamples
708
+ - check-clippy
769
709
- testexamples
770
710
- tests
771
711
- docs
0 commit comments