Skip to content

Commit 6d42c38

Browse files
committed
Disable MIPS in CI. (#793)
* Disable MIPS in CI. Enable check-only testing. * Unpin nightly. * Disable MIPS check tests too. * Mention `rusl` as another similar crate. * Fix a test on illumos.
1 parent 7cdacb1 commit 6d42c38

File tree

2 files changed

+21
-116
lines changed

2 files changed

+21
-116
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
rust: stable
3333
- build: nightly
3434
os: ubuntu-latest
35-
rust: nightly-2023-07-03
35+
rust: nightly
3636
- build: 1.48
3737
os: ubuntu-latest
3838
rust: 1.48
@@ -66,8 +66,6 @@ jobs:
6666
aarch64-unknown-linux-gnu
6767
aarch64-unknown-linux-musl
6868
powerpc64le-unknown-linux-gnu
69-
mipsel-unknown-linux-gnu
70-
mips64el-unknown-linux-gnuabi64
7169
armv5te-unknown-linux-gnueabi
7270
s390x-unknown-linux-gnu
7371
arm-linux-androideabi
@@ -119,8 +117,6 @@ jobs:
119117
- run: cargo check --workspace --release -vv --target=aarch64-unknown-linux-musl --features=all-apis --all-targets
120118
- run: cargo check --workspace --release -vv --target=aarch64-unknown-linux-musl --features=use-libc,all-apis --all-targets
121119
- run: cargo check --workspace --release -vv --target=powerpc64le-unknown-linux-gnu --features=all-apis --all-targets
122-
- run: cargo check --workspace --release -vv --target=mipsel-unknown-linux-gnu --features=all-apis --all-targets
123-
- run: cargo check --workspace --release -vv --target=mips64el-unknown-linux-gnuabi64 --features=all-apis --all-targets
124120
- run: cargo check --workspace --release -vv --target=armv5te-unknown-linux-gnueabi --features=all-apis --all-targets
125121
- run: cargo check --workspace --release -vv --target=s390x-unknown-linux-gnu --features=all-apis --all-targets
126122
- run: cargo check --workspace --release -vv --target=arm-linux-androideabi --features=all-apis --all-targets
@@ -142,7 +138,7 @@ jobs:
142138
include:
143139
- build: nightly
144140
os: ubuntu-latest
145-
rust: nightly-2023-07-03
141+
rust: nightly
146142

147143
env:
148144
# -D warnings is commented out in our install-rust action; re-add it here.
@@ -172,7 +168,7 @@ jobs:
172168
include:
173169
- build: nightly
174170
os: ubuntu-latest
175-
rust: nightly-2023-07-03
171+
rust: nightly
176172

177173
steps:
178174
- uses: actions/checkout@v3
@@ -199,7 +195,7 @@ jobs:
199195
include:
200196
- build: nightly
201197
os: ubuntu-latest
202-
rust: nightly-2023-07-03
198+
rust: nightly
203199

204200
steps:
205201
- uses: actions/checkout@v3
@@ -231,24 +227,24 @@ jobs:
231227
QEMU_BUILD_VERSION: 7.0.0
232228
strategy:
233229
matrix:
234-
build: [ubuntu, ubuntu-20.04, i686-linux, aarch64-linux, powerpc64le-linux, riscv64-linux, s390x-linux, arm-linux, ubuntu-stable, ubuntu-1.48, i686-linux-stable, aarch64-linux-stable, riscv64-linux-stable, s390x-linux-stable, mipsel-linux-stable, mips64el-linux-stable, powerpc64le-linux-stable, arm-linux-stable, ubuntu-1.48, i686-linux-1.48, aarch64-linux-1.48, riscv64-linux-1.48, s390x-linux-1.48, mipsel-linux-1.48, mips64el-linux-1.48, powerpc64le-linux-1.48, arm-linux-1.48, macos-latest, macos-11, windows, windows-2019]
230+
build: [ubuntu, ubuntu-20.04, i686-linux, aarch64-linux, powerpc64le-linux, riscv64-linux, s390x-linux, arm-linux, ubuntu-stable, ubuntu-1.48, i686-linux-stable, aarch64-linux-stable, riscv64-linux-stable, s390x-linux-stable, powerpc64le-linux-stable, arm-linux-stable, ubuntu-1.48, i686-linux-1.48, aarch64-linux-1.48, riscv64-linux-1.48, s390x-linux-1.48, powerpc64le-linux-1.48, arm-linux-1.48, macos-latest, macos-11, windows, windows-2019]
235231
include:
236232
- build: ubuntu
237233
os: ubuntu-latest
238-
rust: nightly-2023-07-03
234+
rust: nightly
239235
- build: ubuntu-20.04
240236
os: ubuntu-20.04
241-
rust: nightly-2023-07-03
237+
rust: nightly
242238
- build: i686-linux
243239
os: ubuntu-latest
244-
rust: nightly-2023-07-03
240+
rust: nightly
245241
target: i686-unknown-linux-gnu
246242
gcc_package: gcc-i686-linux-gnu
247243
gcc: i686-linux-gnu-gcc
248244
libc_package: libc-dev-i386-cross
249245
- build: aarch64-linux
250246
os: ubuntu-latest
251-
rust: nightly-2023-07-03
247+
rust: nightly
252248
target: aarch64-unknown-linux-gnu
253249
gcc_package: gcc-aarch64-linux-gnu
254250
gcc: aarch64-linux-gnu-gcc
@@ -257,34 +253,16 @@ jobs:
257253
qemu_target: aarch64-linux-user
258254
- build: powerpc64le-linux
259255
os: ubuntu-latest
260-
rust: nightly-2023-07-03
256+
rust: nightly
261257
target: powerpc64le-unknown-linux-gnu
262258
gcc_package: gcc-powerpc64le-linux-gnu
263259
gcc: powerpc64le-linux-gnu-gcc
264260
qemu: qemu-ppc64le
265261
qemu_args: -L /usr/powerpc64le-linux-gnu
266262
qemu_target: ppc64le-linux-user
267-
- build: mips64el-linux
268-
os: ubuntu-latest
269-
rust: nightly-2023-07-03
270-
target: mips64el-unknown-linux-gnuabi64
271-
gcc_package: gcc-mips64el-linux-gnuabi64
272-
gcc: mips64el-linux-gnuabi64-gcc
273-
qemu: qemu-mips64el
274-
qemu_args: -L /usr/mips64el-linux-gnuabi64
275-
qemu_target: mips64el-linux-user
276-
- build: mipsel-linux
277-
os: ubuntu-latest
278-
rust: nightly-2023-07-03
279-
target: mipsel-unknown-linux-gnu
280-
gcc_package: gcc-mipsel-linux-gnu
281-
gcc: mipsel-linux-gnu-gcc
282-
qemu: qemu-mipsel
283-
qemu_args: -L /usr/mipsel-linux-gnu
284-
qemu_target: mipsel-linux-user
285263
- build: riscv64-linux
286264
os: ubuntu-latest
287-
rust: nightly-2023-07-03
265+
rust: nightly
288266
target: riscv64gc-unknown-linux-gnu
289267
gcc_package: gcc-riscv64-linux-gnu
290268
gcc: riscv64-linux-gnu-gcc
@@ -293,7 +271,7 @@ jobs:
293271
qemu_target: riscv64-linux-user
294272
- build: s390x-linux
295273
os: ubuntu-latest
296-
rust: nightly-2023-07-03
274+
rust: nightly
297275
target: s390x-unknown-linux-gnu
298276
gcc_package: gcc-s390x-linux-gnu
299277
gcc: s390x-linux-gnu-gcc
@@ -302,7 +280,7 @@ jobs:
302280
qemu_target: s390x-linux-user
303281
- build: arm-linux
304282
os: ubuntu-latest
305-
rust: nightly-2023-07-03
283+
rust: nightly
306284
target: armv5te-unknown-linux-gnueabi
307285
gcc_package: gcc-arm-linux-gnueabi
308286
gcc: arm-linux-gnueabi-gcc
@@ -355,24 +333,6 @@ jobs:
355333
qemu: qemu-ppc64le
356334
qemu_args: -L /usr/powerpc64le-linux-gnu
357335
qemu_target: ppc64le-linux-user
358-
- build: mips64el-linux-stable
359-
os: ubuntu-latest
360-
rust: stable
361-
target: mips64el-unknown-linux-gnuabi64
362-
gcc_package: gcc-mips64el-linux-gnuabi64
363-
gcc: mips64el-linux-gnuabi64-gcc
364-
qemu: qemu-mips64el
365-
qemu_args: -L /usr/mips64el-linux-gnuabi64
366-
qemu_target: mips64el-linux-user
367-
- build: mipsel-linux-stable
368-
os: ubuntu-latest
369-
rust: stable
370-
target: mipsel-unknown-linux-gnu
371-
gcc_package: gcc-mipsel-linux-gnu
372-
gcc: mipsel-linux-gnu-gcc
373-
qemu: qemu-mipsel
374-
qemu_args: -L /usr/mipsel-linux-gnu
375-
qemu_target: mipsel-linux-user
376336
- build: arm-linux-stable
377337
os: ubuntu-latest
378338
rust: stable
@@ -428,24 +388,6 @@ jobs:
428388
qemu: qemu-ppc64le
429389
qemu_args: -L /usr/powerpc64le-linux-gnu
430390
qemu_target: ppc64le-linux-user
431-
- build: mips64el-linux-1.48
432-
os: ubuntu-latest
433-
rust: 1.48
434-
target: mips64el-unknown-linux-gnuabi64
435-
gcc_package: gcc-mips64el-linux-gnuabi64
436-
gcc: mips64el-linux-gnuabi64-gcc
437-
qemu: qemu-mips64el
438-
qemu_args: -L /usr/mips64el-linux-gnuabi64
439-
qemu_target: mips64el-linux-user
440-
- build: mipsel-linux-1.48
441-
os: ubuntu-latest
442-
rust: 1.48
443-
target: mipsel-unknown-linux-gnu
444-
gcc_package: gcc-mipsel-linux-gnu
445-
gcc: mipsel-linux-gnu-gcc
446-
qemu: qemu-mipsel
447-
qemu_args: -L /usr/mipsel-linux-gnu
448-
qemu_target: mipsel-linux-user
449391
- build: arm-linux-1.48
450392
os: ubuntu-latest
451393
rust: 1.48
@@ -463,10 +405,10 @@ jobs:
463405
rust: stable
464406
- build: windows
465407
os: windows-latest
466-
rust: nightly-2023-07-03
408+
rust: nightly
467409
- build: windows-2019
468410
os: windows-2019
469-
rust: nightly-2023-07-03
411+
rust: nightly
470412
steps:
471413
- uses: actions/checkout@v3
472414
with:
@@ -580,7 +522,7 @@ jobs:
580522
runs-on: ${{ matrix.os }}
581523
strategy:
582524
matrix:
583-
build: [ubuntu, i686-linux, aarch64-linux, powerpc64le-linux, mips64el-linux, mipsel-linux, riscv64-linux, arm-linux]
525+
build: [ubuntu, i686-linux, aarch64-linux, powerpc64le-linux, riscv64-linux, arm-linux]
584526
include:
585527
- build: ubuntu
586528
os: ubuntu-latest
@@ -610,24 +552,6 @@ jobs:
610552
qemu: qemu-ppc64le
611553
qemu_args: -L /usr/powerpc64le-linux-gnu
612554
qemu_target: ppc64le-linux-user
613-
- build: mips64el-linux
614-
os: ubuntu-latest
615-
rust: stable
616-
target: mips64el-unknown-linux-gnuabi64
617-
gcc_package: gcc-mips64el-linux-gnuabi64
618-
gcc: mips64el-linux-gnuabi64-gcc
619-
qemu: qemu-mips64el
620-
qemu_args: -L /usr/mips64el-linux-gnuabi64
621-
qemu_target: mips64el-linux-user
622-
- build: mipsel-linux
623-
os: ubuntu-latest
624-
rust: stable
625-
target: mipsel-unknown-linux-gnu
626-
gcc_package: gcc-mipsel-linux-gnu
627-
gcc: mipsel-linux-gnu-gcc
628-
qemu: qemu-mipsel
629-
qemu_args: -L /usr/mipsel-linux-gnu
630-
qemu_target: mipsel-linux-user
631555
- build: riscv64-linux
632556
os: ubuntu-latest
633557
rust: stable
@@ -722,42 +646,22 @@ jobs:
722646
runs-on: ${{ matrix.os }}
723647
strategy:
724648
matrix:
725-
build: [powerpc64le-linux, mipsel-linux, mips64el-linux]
649+
build: [powerpc64le-linux]
726650
include:
727651
- build: powerpc64le-linux
728652
os: ubuntu-latest
729-
rust: nightly-2023-07-03
653+
rust: nightly
730654
target: powerpc64le-unknown-linux-gnu
731655
gcc_package: gcc-powerpc64le-linux-gnu
732656
gcc: powerpc64le-linux-gnu-gcc
733657
qemu: qemu-ppc64le
734658
qemu_args: -L /usr/powerpc64le-linux-gnu
735659
qemu_target: ppc64le-linux-user
736-
- build: mips64el-linux
737-
os: ubuntu-latest
738-
rust: nightly-2023-07-03
739-
target: mips64el-unknown-linux-gnuabi64
740-
gcc_package: gcc-mips64el-linux-gnuabi64
741-
gcc: mips64el-linux-gnuabi64-gcc
742-
qemu: qemu-mips64el
743-
qemu_args: -L /usr/mips64el-linux-gnuabi64
744-
qemu_target: mips64el-linux-user
745-
- build: mipsel-linux
746-
os: ubuntu-latest
747-
rust: nightly-2023-07-03
748-
target: mipsel-unknown-linux-gnu
749-
gcc_package: gcc-mipsel-linux-gnu
750-
gcc: mipsel-linux-gnu-gcc
751-
qemu: qemu-mipsel
752-
qemu_args: -L /usr/mipsel-linux-gnu
753-
qemu_target: mipsel-linux-user
754660
env:
755661
# -D warnings is commented out in our install-rust action; re-add it here.
756662
RUSTFLAGS: --cfg rustix_use_experimental_asm -D warnings
757663
RUSTDOCFLAGS: --cfg rustix_use_experimental_asm
758664
CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_RUSTFLAGS: --cfg rustix_use_experimental_asm
759-
CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_GNU_RUSTFLAGS: --cfg rustix_use_experimental_asm
760-
CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_RUSTFLAGS: --cfg rustix_use_experimental_asm
761665
QEMU_BUILD_VERSION: 7.0.0
762666
steps:
763667
- uses: actions/checkout@v3

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ struct that's 64-bit even on 32-bit platforms.
9696

9797
## Similar crates
9898

99-
`rustix` is similar to [`nix`], [`simple_libc`], [`unix`], [`nc`], and
100-
[`uapi`]. `rustix` is architected for [I/O safety] with most APIs using
99+
`rustix` is similar to [`nix`], [`simple_libc`], [`unix`], [`nc`], [`uapi`],
100+
and [`rusl`]. `rustix` is architected for [I/O safety] with most APIs using
101101
[`OwnedFd`] and [`AsFd`] to manipulate file descriptors rather than `File` or
102102
even `c_int`, and supporting multiple backends so that it can use direct
103103
syscalls while still being usable on all platforms `libc` supports. Like `nix`,
@@ -145,6 +145,7 @@ version of this crate.
145145
[`nc`]: https://crates.io/crates/nc
146146
[`simple_libc`]: https://crates.io/crates/simple_libc
147147
[`uapi`]: https://crates.io/crates/uapi
148+
[`rusl`]: https://lib.rs/crates/rusl
148149
[`relibc`]: https://github.com/redox-os/relibc
149150
[`syscall`]: https://crates.io/crates/syscall
150151
[`sc`]: https://crates.io/crates/sc

0 commit comments

Comments
 (0)