Commit 11beae4
committed
ci: fail example builds on warnings
Set RUSTFLAGS=-D warnings in the example Build step so a stray lint
(e.g. an unused import) fails CI directly. Without it, an undenied
warning is replayed onto stdout by "cargo size" during the bloat step
and corrupts the size parser, surfacing as an opaque shell error far
from the real cause.
HEAD keeps -D warnings in the bloat size step too so RUSTFLAGS matches
the Build step and cargo reuses the binary; the BASE build keeps the
default lint level so a pre-existing warning on main can't fail an
unrelated PR.1 parent e967c31 commit 11beae4
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
122 | | - | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| |||
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
163 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
164 | 171 | | |
165 | 172 | | |
166 | 173 | | |
| |||
0 commit comments