Skip to content

Commit 12f940f

Browse files
committed
Fix cross builds in the CI
1 parent a587acb commit 12f940f

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
@@ -78,30 +78,26 @@ jobs:
7878
- name: Install Rust
7979
run: rustup update stable
8080
- name: Install cross
81-
uses: taiki-e/install-action@v2
82-
with:
83-
# https://github.com/cross-rs/cross/issues/724
84-
81+
uses: taiki-e/install-action@cross
82+
# We don't test BSDs, since we already test them in Cirrus/vmactions.
8583
- name: Android
8684
if: startsWith(matrix.os, 'ubuntu')
8785
run: cross test --target arm-linux-androideabi
88-
- name: NetBSD
89-
if: startsWith(matrix.os, 'ubuntu')
90-
run: cross build --target x86_64-unknown-netbsd
91-
- name: FreeBSD
92-
if: startsWith(matrix.os, 'ubuntu')
93-
run: cross build --target x86_64-unknown-freebsd
9486
- name: iOS
9587
if: startsWith(matrix.os, 'macos')
96-
run: cross build --target aarch64-apple-ios
88+
run: |
89+
rustup target add aarch64-apple-ios
90+
cross build --target aarch64-apple-ios
9791
- name: Linux x32
9892
if: startsWith(matrix.os, 'ubuntu')
99-
run: cross check --target x86_64-unknown-linux-gnux32
93+
run: |
94+
rustup target add x86_64-unknown-linux-gnux32
95+
cross check --target x86_64-unknown-linux-gnux32
10096
- name: Fuchsia
10197
if: startsWith(matrix.os, 'ubuntu')
10298
run: |
103-
rustup target add x86_64-fuchsia
104-
cargo build --target x86_64-fuchsia
99+
rustup target add x86_64-unknown-fuchsia
100+
cargo build --target x86_64-unknown-fuchsia
105101
- name: illumos
106102
if: startsWith(matrix.os, 'ubuntu')
107103
run: |

0 commit comments

Comments
 (0)