Skip to content

Commit

Permalink
CI: Build more apple targets in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Jun 20, 2024
1 parent 481462e commit e853f5c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,11 @@ jobs:
- # Default

target:
- aarch64-apple-ios
- aarch64-apple-darwin
- aarch64-apple-ios
# - aarch64-apple-tvos Tier 3; handled below
# - aarch64-apple-visionos Tier 3; handled below
# - aarch64-apple-watchos Tier 3; handled below
- aarch64-linux-android
- aarch64-pc-windows-msvc
- aarch64-unknown-linux-gnu
Expand Down Expand Up @@ -205,6 +208,27 @@ jobs:
# TODO: Run in the emulator.
cargo_options: --no-run

- target: aarch64-apple-tvos
host_os: macos-14
rust_channel: nightly
mode: --release
# TODO: Run in the emulator.
cargo_options: --no-run -Z build-std

- target: aarch64-apple-visionos
host_os: macos-14
rust_channel: nightly
mode: --release
# TODO: Run in the emulator.
cargo_options: --no-run -Z build-std

- target: aarch64-apple-watchos
host_os: macos-14
rust_channel: nightly
mode: --release
# TODO: Run in the emulator.
cargo_options: --no-run -Z build-std

- target: aarch64-linux-android
host_os: ubuntu-22.04
# TODO: https://github.com/briansmith/ring/issues/486
Expand Down
7 changes: 6 additions & 1 deletion mk/install-build-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ case ${target-} in
esac

case ${target-} in
aarch64-apple-tvos|aarch64-apple-visionos|aarch64-apple-watchos)os*)
RING_SKIP_RUSTUP=1
;;
aarch64-unknown-linux-gnu)
# Clang is needed for code coverage.
use_clang=1
Expand Down Expand Up @@ -212,7 +215,9 @@ linux*)
;;
esac

rustup toolchain install --no-self-update --profile=minimal ${toolchain}
if [ -z "${RING_SKIP_RUSTUP-}" ]; then
rustup toolchain install --no-self-update --profile=minimal ${toolchain}
fi
if [ -n "${target-}" ]; then
rustup target add --toolchain=${toolchain} ${target}
fi
Expand Down

0 comments on commit e853f5c

Please sign in to comment.