File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,36 @@ jobs:
302
302
- name : Run tests
303
303
run : sudo -ubuilder cargo test --workspace --all-targets --release
304
304
305
+ build-and-test-32bit :
306
+ runs-on : ubuntu-latest
307
+
308
+ steps :
309
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
310
+
311
+ - name : Add 32-bit target
312
+ run : |
313
+ rustup target add i686-unknown-linux-gnu
314
+
315
+ - name : Install dependencies
316
+ run : |
317
+ sudo dpkg --add-architecture i386
318
+ sudo apt update
319
+ sudo apt install libpam0g-dev:i386 gcc-multilib
320
+
321
+ - name : Rust Cache
322
+ uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
323
+ with :
324
+ shared-key : " stable-32bit"
325
+
326
+ - name : Register rust problem matcher
327
+ run : echo "::add-matcher::.github/problem-matchers/rust.json"
328
+
329
+ - name : Build
330
+ run : cargo build --target i686-unknown-linux-gnu --workspace --all-targets --release
331
+
332
+ - name : Run tests
333
+ run : cargo test --target i686-unknown-linux-gnu --workspace --all-targets --release
334
+
305
335
miri :
306
336
needs : build-and-test
307
337
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -219,7 +219,13 @@ impl io::Read for TimeoutRead<'_> {
219
219
} ;
220
220
221
221
// SAFETY: pollfd is initialized and its length matches
222
- cerr ( unsafe { libc:: poll ( pollfd. as_mut_ptr ( ) , pollfd. len ( ) as u64 , timeout) } ) ?;
222
+ cerr ( unsafe {
223
+ libc:: poll (
224
+ pollfd. as_mut_ptr ( ) ,
225
+ pollfd. len ( ) . try_into ( ) . unwrap ( ) ,
226
+ timeout,
227
+ )
228
+ } ) ?;
223
229
224
230
// There may yet be data waiting to be read even if POLLHUP is set.
225
231
if pollfd[ 0 ] . revents & ( pollmask | libc:: POLLHUP ) > 0 {
You can’t perform that action at this time.
0 commit comments