Skip to content

Commit ded8986

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 739f9c3 commit ded8986

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
@@ -126,8 +124,6 @@ jobs:
126124
- run: cargo check --workspace --release -vv --target=aarch64-unknown-linux-musl --features=all-apis --all-targets
127125
- run: cargo check --workspace --release -vv --target=aarch64-unknown-linux-musl --features=use-libc,all-apis --all-targets
128126
- run: cargo check --workspace --release -vv --target=powerpc64le-unknown-linux-gnu --features=all-apis --all-targets
129-
- run: cargo check --workspace --release -vv --target=mipsel-unknown-linux-gnu --features=all-apis --all-targets
130-
- run: cargo check --workspace --release -vv --target=mips64el-unknown-linux-gnuabi64 --features=all-apis --all-targets
131127
- run: cargo check --workspace --release -vv --target=armv5te-unknown-linux-gnueabi --features=all-apis --all-targets
132128
- run: cargo check --workspace --release -vv --target=s390x-unknown-linux-gnu --features=all-apis --all-targets
133129
- run: cargo check --workspace --release -vv --target=arm-linux-androideabi --features=all-apis --all-targets
@@ -149,7 +145,7 @@ jobs:
149145
include:
150146
- build: nightly
151147
os: ubuntu-latest
152-
rust: nightly-2023-07-03
148+
rust: nightly
153149

154150
env:
155151
# -D warnings is commented out in our install-rust action; re-add it here.
@@ -173,7 +169,7 @@ jobs:
173169
include:
174170
- build: nightly
175171
os: ubuntu-latest
176-
rust: nightly-2023-07-03
172+
rust: nightly
177173

178174
steps:
179175
- uses: actions/checkout@v3
@@ -200,7 +196,7 @@ jobs:
200196
include:
201197
- build: nightly
202198
os: ubuntu-latest
203-
rust: nightly-2023-07-03
199+
rust: nightly
204200

205201
steps:
206202
- uses: actions/checkout@v3
@@ -232,24 +228,24 @@ jobs:
232228
QEMU_BUILD_VERSION: 7.0.0
233229
strategy:
234230
matrix:
235-
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]
231+
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]
236232
include:
237233
- build: ubuntu
238234
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
239-
rust: nightly-2023-07-03
235+
rust: nightly
240236
- build: ubuntu-20.04
241237
os: ubuntu-20.04
242-
rust: nightly-2023-07-03
238+
rust: nightly
243239
- build: i686-linux
244240
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
245-
rust: nightly-2023-07-03
241+
rust: nightly
246242
target: i686-unknown-linux-gnu
247243
gcc_package: gcc-i686-linux-gnu
248244
gcc: i686-linux-gnu-gcc
249245
libc_package: libc-dev-i386-cross
250246
- build: aarch64-linux
251247
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
252-
rust: nightly-2023-07-03
248+
rust: nightly
253249
target: aarch64-unknown-linux-gnu
254250
gcc_package: gcc-aarch64-linux-gnu
255251
gcc: aarch64-linux-gnu-gcc
@@ -258,34 +254,16 @@ jobs:
258254
qemu_target: aarch64-linux-user
259255
- build: powerpc64le-linux
260256
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
261-
rust: nightly-2023-07-03
257+
rust: nightly
262258
target: powerpc64le-unknown-linux-gnu
263259
gcc_package: gcc-powerpc64le-linux-gnu
264260
gcc: powerpc64le-linux-gnu-gcc
265261
qemu: qemu-ppc64le
266262
qemu_args: -L /usr/powerpc64le-linux-gnu
267263
qemu_target: ppc64le-linux-user
268-
- build: mips64el-linux
269-
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
270-
rust: nightly-2023-07-03
271-
target: mips64el-unknown-linux-gnuabi64
272-
gcc_package: gcc-mips64el-linux-gnuabi64
273-
gcc: mips64el-linux-gnuabi64-gcc
274-
qemu: qemu-mips64el
275-
qemu_args: -L /usr/mips64el-linux-gnuabi64
276-
qemu_target: mips64el-linux-user
277-
- build: mipsel-linux
278-
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
279-
rust: nightly-2023-07-03
280-
target: mipsel-unknown-linux-gnu
281-
gcc_package: gcc-mipsel-linux-gnu
282-
gcc: mipsel-linux-gnu-gcc
283-
qemu: qemu-mipsel
284-
qemu_args: -L /usr/mipsel-linux-gnu
285-
qemu_target: mipsel-linux-user
286264
- build: riscv64-linux
287265
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
288-
rust: nightly-2023-07-03
266+
rust: nightly
289267
target: riscv64gc-unknown-linux-gnu
290268
gcc_package: gcc-riscv64-linux-gnu
291269
gcc: riscv64-linux-gnu-gcc
@@ -294,7 +272,7 @@ jobs:
294272
qemu_target: riscv64-linux-user
295273
- build: s390x-linux
296274
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
297-
rust: nightly-2023-07-03
275+
rust: nightly
298276
target: s390x-unknown-linux-gnu
299277
gcc_package: gcc-s390x-linux-gnu
300278
gcc: s390x-linux-gnu-gcc
@@ -303,7 +281,7 @@ jobs:
303281
qemu_target: s390x-linux-user
304282
- build: arm-linux
305283
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
306-
rust: nightly-2023-07-03
284+
rust: nightly
307285
target: armv5te-unknown-linux-gnueabi
308286
gcc_package: gcc-arm-linux-gnueabi
309287
gcc: arm-linux-gnueabi-gcc
@@ -356,24 +334,6 @@ jobs:
356334
qemu: qemu-ppc64le
357335
qemu_args: -L /usr/powerpc64le-linux-gnu
358336
qemu_target: ppc64le-linux-user
359-
- build: mips64el-linux-stable
360-
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
361-
rust: stable
362-
target: mips64el-unknown-linux-gnuabi64
363-
gcc_package: gcc-mips64el-linux-gnuabi64
364-
gcc: mips64el-linux-gnuabi64-gcc
365-
qemu: qemu-mips64el
366-
qemu_args: -L /usr/mips64el-linux-gnuabi64
367-
qemu_target: mips64el-linux-user
368-
- build: mipsel-linux-stable
369-
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
370-
rust: stable
371-
target: mipsel-unknown-linux-gnu
372-
gcc_package: gcc-mipsel-linux-gnu
373-
gcc: mipsel-linux-gnu-gcc
374-
qemu: qemu-mipsel
375-
qemu_args: -L /usr/mipsel-linux-gnu
376-
qemu_target: mipsel-linux-user
377337
- build: arm-linux-stable
378338
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
379339
rust: stable
@@ -429,24 +389,6 @@ jobs:
429389
qemu: qemu-ppc64le
430390
qemu_args: -L /usr/powerpc64le-linux-gnu
431391
qemu_target: ppc64le-linux-user
432-
- build: mips64el-linux-1.48
433-
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
434-
rust: 1.48
435-
target: mips64el-unknown-linux-gnuabi64
436-
gcc_package: gcc-mips64el-linux-gnuabi64
437-
gcc: mips64el-linux-gnuabi64-gcc
438-
qemu: qemu-mips64el
439-
qemu_args: -L /usr/mips64el-linux-gnuabi64
440-
qemu_target: mips64el-linux-user
441-
- build: mipsel-linux-1.48
442-
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
443-
rust: 1.48
444-
target: mipsel-unknown-linux-gnu
445-
gcc_package: gcc-mipsel-linux-gnu
446-
gcc: mipsel-linux-gnu-gcc
447-
qemu: qemu-mipsel
448-
qemu_args: -L /usr/mipsel-linux-gnu
449-
qemu_target: mipsel-linux-user
450392
- build: arm-linux-1.48
451393
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
452394
rust: 1.48
@@ -464,10 +406,10 @@ jobs:
464406
rust: stable
465407
- build: windows
466408
os: windows-latest
467-
rust: nightly-2023-07-03
409+
rust: nightly
468410
- build: windows-2019
469411
os: windows-2019
470-
rust: nightly-2023-07-03
412+
rust: nightly
471413
steps:
472414
- uses: actions/checkout@v3
473415
with:
@@ -575,7 +517,7 @@ jobs:
575517
runs-on: ${{ matrix.os }}
576518
strategy:
577519
matrix:
578-
build: [ubuntu, i686-linux, aarch64-linux, powerpc64le-linux, mips64el-linux, mipsel-linux, riscv64-linux, arm-linux]
520+
build: [ubuntu, i686-linux, aarch64-linux, powerpc64le-linux, riscv64-linux, arm-linux]
579521
include:
580522
- build: ubuntu
581523
os: ubuntu-latest
@@ -605,24 +547,6 @@ jobs:
605547
qemu: qemu-ppc64le
606548
qemu_args: -L /usr/powerpc64le-linux-gnu
607549
qemu_target: ppc64le-linux-user
608-
- build: mips64el-linux
609-
os: ubuntu-latest
610-
rust: stable
611-
target: mips64el-unknown-linux-gnuabi64
612-
gcc_package: gcc-mips64el-linux-gnuabi64
613-
gcc: mips64el-linux-gnuabi64-gcc
614-
qemu: qemu-mips64el
615-
qemu_args: -L /usr/mips64el-linux-gnuabi64
616-
qemu_target: mips64el-linux-user
617-
- build: mipsel-linux
618-
os: ubuntu-latest
619-
rust: stable
620-
target: mipsel-unknown-linux-gnu
621-
gcc_package: gcc-mipsel-linux-gnu
622-
gcc: mipsel-linux-gnu-gcc
623-
qemu: qemu-mipsel
624-
qemu_args: -L /usr/mipsel-linux-gnu
625-
qemu_target: mipsel-linux-user
626550
- build: riscv64-linux
627551
os: ubuntu-latest
628552
rust: stable
@@ -712,42 +636,22 @@ jobs:
712636
runs-on: ${{ matrix.os }}
713637
strategy:
714638
matrix:
715-
build: [powerpc64le-linux, mipsel-linux, mips64el-linux]
639+
build: [powerpc64le-linux]
716640
include:
717641
- build: powerpc64le-linux
718642
os: ubuntu-latest
719-
rust: nightly-2023-07-03
643+
rust: nightly
720644
target: powerpc64le-unknown-linux-gnu
721645
gcc_package: gcc-powerpc64le-linux-gnu
722646
gcc: powerpc64le-linux-gnu-gcc
723647
qemu: qemu-ppc64le
724648
qemu_args: -L /usr/powerpc64le-linux-gnu
725649
qemu_target: ppc64le-linux-user
726-
- build: mips64el-linux
727-
os: ubuntu-latest
728-
rust: nightly-2023-07-03
729-
target: mips64el-unknown-linux-gnuabi64
730-
gcc_package: gcc-mips64el-linux-gnuabi64
731-
gcc: mips64el-linux-gnuabi64-gcc
732-
qemu: qemu-mips64el
733-
qemu_args: -L /usr/mips64el-linux-gnuabi64
734-
qemu_target: mips64el-linux-user
735-
- build: mipsel-linux
736-
os: ubuntu-latest
737-
rust: nightly-2023-07-03
738-
target: mipsel-unknown-linux-gnu
739-
gcc_package: gcc-mipsel-linux-gnu
740-
gcc: mipsel-linux-gnu-gcc
741-
qemu: qemu-mipsel
742-
qemu_args: -L /usr/mipsel-linux-gnu
743-
qemu_target: mipsel-linux-user
744650
env:
745651
# -D warnings is commented out in our install-rust action; re-add it here.
746652
RUSTFLAGS: --cfg rustix_use_experimental_asm -D warnings
747653
RUSTDOCFLAGS: --cfg rustix_use_experimental_asm
748654
CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_RUSTFLAGS: --cfg rustix_use_experimental_asm
749-
CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_GNU_RUSTFLAGS: --cfg rustix_use_experimental_asm
750-
CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_RUSTFLAGS: --cfg rustix_use_experimental_asm
751655
QEMU_BUILD_VERSION: 7.0.0
752656
steps:
753657
- uses: actions/checkout@v3

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ by default. The rest of the API is conditional with cargo feature flags:
8787

8888
## Similar crates
8989

90-
`rustix` is similar to [`nix`], [`simple_libc`], [`unix`], [`nc`], and
91-
[`uapi`]. `rustix` is architected for [I/O safety] with most APIs using
90+
`rustix` is similar to [`nix`], [`simple_libc`], [`unix`], [`nc`], [`uapi`],
91+
and [`rusl`]. `rustix` is architected for [I/O safety] with most APIs using
9292
[`OwnedFd`] and [`AsFd`] to manipulate file descriptors rather than `File` or
9393
even `c_int`, and supporting multiple backends so that it can use direct
9494
syscalls while still being usable on all platforms `libc` supports. Like `nix`,
@@ -136,6 +136,7 @@ version of this crate.
136136
[`nc`]: https://crates.io/crates/nc
137137
[`simple_libc`]: https://crates.io/crates/simple_libc
138138
[`uapi`]: https://crates.io/crates/uapi
139+
[`rusl`]: https://lib.rs/crates/rusl
139140
[`relibc`]: https://github.com/redox-os/relibc
140141
[`syscall`]: https://crates.io/crates/syscall
141142
[`sc`]: https://crates.io/crates/sc

0 commit comments

Comments
 (0)