@@ -52,10 +52,12 @@ jobs:
52
52
- name : Install Rust (rustup)
53
53
run : rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
54
54
shell : bash
55
+ - run : echo RUSTFLAGS=-Dwarnings >> $GITHUB_ENV
56
+ shell : bash
55
57
# full fidelity of backtraces on 32-bit msvc requires frame pointers, so
56
58
# enable that for our tests
57
59
- name : Force frame pointers
58
- run : echo RUSTFLAGS=-Cforce-frame-pointers >> $GITHUB_ENV
60
+ run : echo RUSTFLAGS=" -Cforce-frame-pointers $RUSTFLAGS" >> $GITHUB_ENV
59
61
shell : bash
60
62
if : matrix.thing == 'windows-msvc32'
61
63
- run : cargo build --manifest-path crates/backtrace-sys/Cargo.toml
99
101
- name : Install Rust
100
102
run : rustup update stable --no-self-update && rustup default stable
101
103
shell : bash
104
+ - run : echo RUSTFLAGS=-Dwarnings >> $GITHUB_ENV
105
+ shell : bash
102
106
- run : rustup target add aarch64-pc-windows-msvc
103
107
- run : cargo test --no-run --target aarch64-pc-windows-msvc
104
108
- run : cargo test --no-run --target aarch64-pc-windows-msvc --features verify-winapi
@@ -122,6 +126,7 @@ jobs:
122
126
submodules : true
123
127
- run : rustup target add ${{ matrix.target }}
124
128
- run : |
129
+ export RUSTFLAGS=-Dwarnings
125
130
export SDK_PATH=`xcrun --show-sdk-path --sdk ${{ matrix.sdk }}`
126
131
export RUSTFLAGS="-C link-arg=-isysroot -C link-arg=$SDK_PATH"
127
132
cargo test --no-run --target ${{ matrix.target }}
@@ -156,6 +161,8 @@ jobs:
156
161
run : rustup update stable && rustup default stable
157
162
- run : rustup target add ${{ matrix.target }}
158
163
- run : cargo generate-lockfile
164
+ - run : echo RUSTFLAGS=-Dwarnings >> $GITHUB_ENV
165
+ shell : bash
159
166
- run : ./ci/run-docker.sh ${{ matrix.target }}
160
167
161
168
rustfmt :
@@ -182,6 +189,8 @@ jobs:
182
189
- name : Install Rust
183
190
run : rustup update nightly && rustup default nightly
184
191
- run : rustup target add ${{ matrix.target }}
192
+ - run : echo RUSTFLAGS=-Dwarnings >> $GITHUB_ENV
193
+ shell : bash
185
194
- run : cargo build --target ${{ matrix.target }}
186
195
187
196
msrv :
0 commit comments