Skip to content

Commit

Permalink
ci: Use YAML arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Aug 29, 2024
1 parent 5c8a32d commit bba2395
Showing 1 changed file with 44 additions and 51 deletions.
95 changes: 44 additions & 51 deletions .github/workflows/full_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ jobs:
strategy:
fail-fast: true
matrix:
target: [
i686-unknown-linux-gnu,
x86_64-unknown-linux-gnu,
]
target:
- i686-unknown-linux-gnu
- x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
Expand All @@ -35,9 +34,8 @@ jobs:
strategy:
fail-fast: true
matrix:
target: [
aarch64-apple-darwin,
]
target:
- aarch64-apple-darwin
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
Expand Down Expand Up @@ -104,32 +102,31 @@ jobs:
fail-fast: true
max-parallel: 12
matrix:
target: [
aarch64-linux-android,
aarch64-unknown-linux-gnu,
aarch64-unknown-linux-musl,
arm-linux-androideabi,
arm-unknown-linux-gnueabihf,
arm-unknown-linux-musleabihf,
i686-linux-android,
i686-unknown-linux-musl,
powerpc-unknown-linux-gnu,
powerpc64-unknown-linux-gnu,
powerpc64le-unknown-linux-gnu,
s390x-unknown-linux-gnu,
riscv64gc-unknown-linux-gnu,
wasm32-wasip1,
wasm32-wasip2,
sparc64-unknown-linux-gnu,
wasm32-unknown-emscripten,
x86_64-linux-android,
target:
- aarch64-linux-android
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
- arm-linux-androideabi
- arm-unknown-linux-gnueabihf
- arm-unknown-linux-musleabihf
- i686-linux-android
- i686-unknown-linux-musl
- powerpc-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
- powerpc64le-unknown-linux-gnu
- s390x-unknown-linux-gnu
- riscv64gc-unknown-linux-gnu
- wasm32-wasip1
- wasm32-wasip2
- sparc64-unknown-linux-gnu
- wasm32-unknown-emscripten
- x86_64-linux-android
# FIXME: Exec format error (os error 8)
#x86_64-unknown-linux-gnux32,
x86_64-unknown-linux-musl,
# - x86_64-unknown-linux-gnux32
- x86_64-unknown-linux-musl
# FIXME: It seems some items in `src/unix/mod.rs`
# aren't defined on redox actually.
# x86_64-unknown-redox,
]
# - x86_64-unknown-redox
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
Expand All @@ -150,12 +147,11 @@ jobs:
fail-fast: true
max-parallel: 5
matrix:
toolchain: [
stable,
beta,
nightly,
1.63.0,
]
toolchain:
- stable
- beta
- nightly
- 1.63.0
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
Expand Down Expand Up @@ -199,10 +195,9 @@ jobs:
strategy:
fail-fast: true
matrix:
toolchain: [
1.63.0,
stable,
]
toolchain:
- 1.63.0
- stable
steps:
- uses: actions/checkout@v4
- name: Self-update rustup
Expand All @@ -215,7 +210,6 @@ jobs:
check_cfg:
permissions:
contents: read # to fetch code (actions/checkout)

name: "Check #[cfg]s"
runs-on: ubuntu-22.04
steps:
Expand All @@ -230,16 +224,15 @@ jobs:
success:
name: success
runs-on: ubuntu-22.04
needs: [
docker_linux_tier1,
docker_linux_tier2,
macos,
windows,
style_check,
build_channels_linux,
build_channels_macos,
build_channels_windows,
]
needs:
- docker_linux_tier1
- docker_linux_tier2
- macos
- windows
- style_check
- build_channels_linux
- build_channels_macos
- build_channels_windows
# Github branch protection is exceedingly silly and treats "jobs skipped because a dependency
# failed" as success. So we have to do some contortions to ensure the job fails if any of its
# dependencies fails.
Expand Down

0 comments on commit bba2395

Please sign in to comment.