Skip to content

Commit 13507bf

Browse files
committed
ci: Use YAML arrays
(backport <#3891>) (cherry picked from commit bba2395)
1 parent f3d58c2 commit 13507bf

File tree

1 file changed

+51
-58
lines changed

1 file changed

+51
-58
lines changed

.github/workflows/full_ci.yml

Lines changed: 51 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ jobs:
1616
strategy:
1717
fail-fast: true
1818
matrix:
19-
target: [
20-
i686-unknown-linux-gnu,
21-
x86_64-unknown-linux-gnu,
22-
]
19+
target:
20+
- i686-unknown-linux-gnu
21+
- x86_64-unknown-linux-gnu
2322
steps:
2423
- uses: actions/checkout@v4
2524
- name: Setup Rust toolchain
@@ -36,9 +35,8 @@ jobs:
3635
strategy:
3736
fail-fast: true
3837
matrix:
39-
target: [
40-
x86_64-apple-darwin,
41-
]
38+
target:
39+
- x86_64-apple-darwin
4240
steps:
4341
- uses: actions/checkout@v4
4442
- name: Setup Rust toolchain
@@ -104,32 +102,31 @@ jobs:
104102
fail-fast: true
105103
max-parallel: 12
106104
matrix:
107-
target: [
108-
aarch64-linux-android,
109-
aarch64-unknown-linux-gnu,
110-
aarch64-unknown-linux-musl,
111-
arm-linux-androideabi,
112-
arm-unknown-linux-gnueabihf,
113-
arm-unknown-linux-musleabihf,
114-
i686-linux-android,
115-
i686-unknown-linux-musl,
116-
powerpc-unknown-linux-gnu,
117-
powerpc64-unknown-linux-gnu,
118-
powerpc64le-unknown-linux-gnu,
119-
s390x-unknown-linux-gnu,
120-
riscv64gc-unknown-linux-gnu,
121-
wasm32-wasip1,
122-
wasm32-wasip2,
123-
sparc64-unknown-linux-gnu,
124-
wasm32-unknown-emscripten,
125-
x86_64-linux-android,
105+
target:
106+
- aarch64-linux-android
107+
- aarch64-unknown-linux-gnu
108+
- aarch64-unknown-linux-musl
109+
- arm-linux-androideabi
110+
- arm-unknown-linux-gnueabihf
111+
- arm-unknown-linux-musleabihf
112+
- i686-linux-android
113+
- i686-unknown-linux-musl
114+
- powerpc-unknown-linux-gnu
115+
- powerpc64-unknown-linux-gnu
116+
- powerpc64le-unknown-linux-gnu
117+
- s390x-unknown-linux-gnu
118+
- riscv64gc-unknown-linux-gnu
119+
- wasm32-wasip1
120+
- wasm32-wasip2
121+
- sparc64-unknown-linux-gnu
122+
- wasm32-unknown-emscripten
123+
- x86_64-linux-android
126124
# FIXME: Exec format error (os error 8)
127-
#x86_64-unknown-linux-gnux32,
128-
x86_64-unknown-linux-musl,
125+
# - x86_64-unknown-linux-gnux32
126+
- x86_64-unknown-linux-musl
129127
# FIXME: It seems some items in `src/unix/mod.rs`
130128
# aren't defined on redox actually.
131-
# x86_64-unknown-redox,
132-
]
129+
# - x86_64-unknown-redox
133130
steps:
134131
- uses: actions/checkout@v4
135132
- name: Setup Rust toolchain
@@ -150,18 +147,17 @@ jobs:
150147
fail-fast: true
151148
max-parallel: 5
152149
matrix:
153-
toolchain: [
154-
stable,
155-
beta,
156-
nightly,
150+
toolchain:
151+
- stable
152+
- beta
153+
- nightly
157154
# FIXME: Disabled due to:
158155
# error: failed to parse registry's information for: serde
159-
#1.13.0,
160-
1.19.0,
161-
1.24.0,
162-
1.25.0,
163-
1.30.0,
164-
]
156+
# 1.13.0,
157+
- 1.19.0
158+
- 1.24.0
159+
- 1.25.0
160+
- 1.30.0
165161
steps:
166162
- uses: actions/checkout@v4
167163
- name: Setup Rust toolchain
@@ -204,13 +200,12 @@ jobs:
204200
strategy:
205201
fail-fast: true
206202
matrix:
207-
toolchain: [
208-
1.19.0,
209-
1.24.0,
210-
1.25.0,
211-
1.30.0,
212-
stable,
213-
]
203+
toolchain:
204+
- 1.19.0
205+
- 1.24.0
206+
- 1.25.0
207+
- 1.30.0
208+
- stable
214209
steps:
215210
- uses: actions/checkout@v4
216211
- name: Self-update rustup
@@ -223,7 +218,6 @@ jobs:
223218
check_cfg:
224219
permissions:
225220
contents: read # to fetch code (actions/checkout)
226-
227221
name: "Check #[cfg]s"
228222
runs-on: ubuntu-22.04
229223
steps:
@@ -238,16 +232,15 @@ jobs:
238232
success:
239233
name: success
240234
runs-on: ubuntu-22.04
241-
needs: [
242-
docker_linux_tier1,
243-
docker_linux_tier2,
244-
macos,
245-
windows,
246-
style_check,
247-
build_channels_linux,
248-
build_channels_macos,
249-
build_channels_windows,
250-
]
235+
needs:
236+
- docker_linux_tier1
237+
- docker_linux_tier2
238+
- macos
239+
- windows
240+
- style_check
241+
- build_channels_linux
242+
- build_channels_macos
243+
- build_channels_windows
251244
# Github branch protection is exceedingly silly and treats "jobs skipped because a dependency
252245
# failed" as success. So we have to do some contortions to ensure the job fails if any of its
253246
# dependencies fails.

0 commit comments

Comments
 (0)