Skip to content

Commit 7e76a12

Browse files
committed
Fix cross builds in the CI
1 parent ce297f4 commit 7e76a12

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -74,30 +74,26 @@ jobs:
7474
- name: Install Rust
7575
run: rustup update stable
7676
- name: Install cross
77-
uses: taiki-e/install-action@v2
78-
with:
79-
# https://github.com/cross-rs/cross/issues/724
80-
77+
uses: taiki-e/install-action@cross
78+
# We don't test BSDs, since we already test them in Cirrus/vmactions.
8179
- name: Android
8280
if: startsWith(matrix.os, 'ubuntu')
8381
run: cross test --target arm-linux-androideabi
84-
- name: NetBSD
85-
if: startsWith(matrix.os, 'ubuntu')
86-
run: cross build --target x86_64-unknown-netbsd
87-
- name: FreeBSD
88-
if: startsWith(matrix.os, 'ubuntu')
89-
run: cross build --target x86_64-unknown-freebsd
9082
- name: iOS
9183
if: startsWith(matrix.os, 'macos')
92-
run: cross build --target aarch64-apple-ios
84+
run: |
85+
rustup target add aarch64-apple-ios
86+
cross build --target aarch64-apple-ios
9387
- name: Linux x32
9488
if: startsWith(matrix.os, 'ubuntu')
95-
run: cross check --target x86_64-unknown-linux-gnux32
89+
run: |
90+
rustup target add x86_64-unknown-linux-gnux32
91+
cross check --target x86_64-unknown-linux-gnux32
9692
- name: Fuchsia
9793
if: startsWith(matrix.os, 'ubuntu')
9894
run: |
99-
rustup target add x86_64-fuchsia
100-
cargo build --target x86_64-fuchsia
95+
rustup target add x86_64-unknown-fuchsia
96+
cargo build --target x86_64-unknown-fuchsia
10197
- name: illumos
10298
if: startsWith(matrix.os, 'ubuntu')
10399
run: |

0 commit comments

Comments
 (0)