Skip to content

Commit e144b1b

Browse files
authored
ci: do not test std feature in tier 3 builds (#543)
Rust CI does not test `std` build for tier 3 targets, which means that breakage can go unnoticed for a long time (see rust-lang/rust#123032 and rust-lang/rust#133401). This results in unrelated CI breakages on our side. Additionally, removes OpenBSD from the tier3 build-only job since we test this target properly using VM.
1 parent 2ce1f0b commit e144b1b

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/build.yml

+7-17
Original file line numberDiff line numberDiff line change
@@ -98,34 +98,24 @@ jobs:
9898
runs-on: ubuntu-22.04
9999
strategy:
100100
matrix:
101-
# Supported tier 3 targets without libstd support
102101
target: [
103-
x86_64-unknown-hermit,
104-
x86_64-wrs-vxworks,
105102
aarch64-kmc-solid_asp3,
103+
aarch64-unknown-nto-qnx710,
106104
armv6k-nintendo-3ds,
107105
armv7-sony-vita-newlibeabihf,
108-
aarch64-unknown-nto-qnx710,
106+
i686-unknown-hurd-gnu,
107+
x86_64-unknown-hermit,
108+
x86_64-wrs-vxworks,
109+
x86_64-unknown-dragonfly,
110+
x86_64-unknown-haiku,
109111
]
110-
# Supported tier 3 targets with libstd support
111-
include:
112-
- target: aarch64-unknown-nto-qnx710
113-
features: ["std"]
114-
- target: x86_64-unknown-openbsd
115-
features: ["std"]
116-
- target: x86_64-unknown-dragonfly
117-
features: ["std"]
118-
- target: x86_64-unknown-haiku
119-
features: ["std"]
120-
- target: i686-unknown-hurd-gnu
121-
features: ["std"]
122112
steps:
123113
- uses: actions/checkout@v4
124114
- uses: dtolnay/rust-toolchain@nightly # Required to build libcore
125115
with:
126116
components: rust-src
127117
- uses: Swatinem/rust-cache@v2
128-
- run: cargo build -Z build-std=${{ contains(matrix.features, 'std') && 'std' || 'core'}} --target=${{ matrix.target }} --features="${{ join(matrix.features, ',') }}"
118+
- run: cargo build -Z build-std=core --target=${{ matrix.target }}
129119

130120
rdrand:
131121
name: RDRAND

0 commit comments

Comments
 (0)