40
40
components : rust-src
41
41
- run : git config user.name "github-runner" && git config user.email "<>"
42
42
- run : git rebase --exec 'cargo doc --all-features --no-deps' --root
43
+ env :
44
+ RUSTFLAGS : " -Dwarnings"
43
45
clippy :
44
46
runs-on : ubuntu-latest
45
47
steps :
54
56
- run : git config user.name "github-runner" && git config user.email "<>"
55
57
# examples and tests require `alloc`, since they make extensive use of `Box` etc.
56
58
- run : git rebase --exec 'cargo hack --clean-per-run --feature-powerset clippy --all-targets --locked --features alloc' --exec 'cargo clean' --root
59
+ env :
60
+ RUSTFLAGS : " -Dwarnings"
57
61
# the core lib does not, so also check that without the alloc feature.
58
62
- run : git rebase --exec 'cargo hack --clean-per-run --feature-powerset clippy --lib --locked' --exec 'cargo clean' --root
63
+ env :
64
+ RUSTFLAGS : " -Dwarnings"
59
65
test :
60
66
runs-on : ubuntu-latest
61
67
steps :
66
72
- run : cargo install cargo-expand
67
73
- run : git config user.name "github-runner" && git config user.email "<>"
68
74
- run : git rebase --exec 'cargo test --locked --all-targets' --root
75
+ env :
76
+ RUSTFLAGS : " -Dwarnings"
69
77
# doctests are strangely not included in --all-targets
70
78
- run : git rebase --exec 'cargo test --locked --doc' --root
79
+ env :
80
+ RUSTFLAGS : " -Dwarnings"
71
81
miri :
72
82
runs-on : ubuntu-latest
73
83
name : " miri (${{matrix.MIRIFLAGS}})"
@@ -90,10 +100,12 @@ jobs:
90
100
- run : git config user.name "github-runner" && git config user.email "<>"
91
101
- run : git rebase --exec 'cargo miri test --locked --all-targets' --root
92
102
env :
103
+ RUSTFLAGS : " -Dwarnings"
93
104
MIRIFLAGS : ${{matrix.MIRIFLAGS}}
94
105
# doctests are strangely not included in --all-targets
95
106
- run : git rebase --exec 'cargo miri test --locked --doc' --root
96
107
env :
108
+ RUSTFLAGS : " -Dwarnings"
97
109
MIRIFLAGS : ${{matrix.MIRIFLAGS}}
98
110
sanitizers :
99
111
runs-on : ubuntu-latest
@@ -116,20 +128,20 @@ jobs:
116
128
- run : git rebase --exec "sed -i '/\[features\]/i [profile.dev]' Cargo.toml && sed -i '/profile.dev/a opt-level = 1' Cargo.toml && cargo test --lib --tests --target x86_64-unknown-linux-gnu && git restore Cargo.toml" --root
117
129
env :
118
130
ASAN_OPTIONS : " detect_odr_violation=0:detect_leaks=0"
119
- RUSTFLAGS : " --cfg NO_UI_TESTS --cfg NO_ALLOC_FAIL_TESTS -Z sanitizer=address"
131
+ RUSTFLAGS : " --cfg NO_UI_TESTS --cfg NO_ALLOC_FAIL_TESTS -Z sanitizer=address -Dwarnings "
120
132
# sed because of https://github.com/japaric/rust-san#unrealiable-leaksanitizer
121
133
# doctests are strangely not included in --all-targets
122
134
- run : git rebase --exec "sed -i '/\[features\]/i [profile.dev]' Cargo.toml && sed -i '/profile.dev/a opt-level = 1' Cargo.toml && cargo test --doc --target x86_64-unknown-linux-gnu && git restore Cargo.toml" --root
123
135
env :
124
136
ASAN_OPTIONS : " detect_odr_violation=0:detect_leaks=0"
125
- RUSTFLAGS : " --cfg NO_UI_TESTS --cfg NO_ALLOC_FAIL_TESTS -Z sanitizer=address"
137
+ RUSTFLAGS : " --cfg NO_UI_TESTS --cfg NO_ALLOC_FAIL_TESTS -Z sanitizer=address -Dwarnings "
126
138
- run : git rebase --exec 'cargo test --all-targets --target x86_64-unknown-linux-gnu' --root
127
139
env :
128
- RUSTFLAGS : " --cfg NO_UI_TESTS --cfg NO_ALLOC_FAIL_TESTS -Z sanitizer=leak"
140
+ RUSTFLAGS : " --cfg NO_UI_TESTS --cfg NO_ALLOC_FAIL_TESTS -Z sanitizer=leak -Dwarnings "
129
141
# doctests are strangely not included in --all-targets
130
142
- run : git rebase --exec 'cargo test --doc --target x86_64-unknown-linux-gnu' --root
131
143
env :
132
- RUSTFLAGS : " --cfg NO_UI_TESTS --cfg NO_ALLOC_FAIL_TESTS -Z sanitizer=leak"
144
+ RUSTFLAGS : " --cfg NO_UI_TESTS --cfg NO_ALLOC_FAIL_TESTS -Z sanitizer=leak -Dwarnings "
133
145
msrv :
134
146
runs-on : ubuntu-latest
135
147
steps :
@@ -141,6 +153,8 @@ jobs:
141
153
- run : cargo install cargo-hack
142
154
- run : git config user.name "github-runner" && git config user.email "<>"
143
155
- run : git rebase --exec 'cargo hack --clean-per-run --feature-powerset --exclude-features alloc --exclude-features default --version-range 1.82.. --clean-per-version check --locked --all-targets' --exec 'cargo clean' --root
156
+ env :
157
+ RUSTFLAGS : " -Dwarnings"
144
158
nightly-msrv :
145
159
runs-on : ubuntu-latest
146
160
steps :
@@ -157,6 +171,7 @@ jobs:
157
171
- run : git rebase --exec 'cargo hack --clean-per-run --feature-powerset --version-range 1.78.. --clean-per-version check --locked --all-targets' --exec 'cargo clean' --root
158
172
env :
159
173
RUSTC_BOOTSTRAP : 1
174
+ RUSTFLAGS : " -Dwarnings"
160
175
os-check :
161
176
strategy :
162
177
fail-fast : false
@@ -175,8 +190,12 @@ jobs:
175
190
- run : cargo install cargo-expand
176
191
- run : git config user.name "github-runner" && git config user.email "<>"
177
192
- run : git rebase --exec 'cargo test --all-targets --locked' --root
193
+ env :
194
+ RUSTFLAGS : " -Dwarnings"
178
195
# doctests are strangely not included in --all-targets
179
196
- run : git rebase --exec 'cargo test --doc --locked' --root
197
+ env :
198
+ RUSTFLAGS : " -Dwarnings"
180
199
signed-off-by :
181
200
runs-on : ubuntu-latest
182
201
steps :
@@ -228,3 +247,5 @@ jobs:
228
247
- run : sudo apt-get install -y linkchecker
229
248
- run : git config user.name "github-runner" && git config user.email "<>"
230
249
- run : git rebase --exec 'cargo doc --all-features --no-deps && linkchecker target/doc/*/*.html' --root
250
+ env :
251
+ RUSTFLAGS : " -Dwarnings"
0 commit comments