Add tvOS and watchOS to CI

This commit is contained in:
Thom Chiovoloni 2022-10-24 21:29:25 -07:00
parent e6ed8e1a55
commit e32ea822c3
No known key found for this signature in database
GPG Key ID: D7733D1D7A775F0A
2 changed files with 7 additions and 2 deletions

View File

@ -152,12 +152,14 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@nightly
with:
targets: aarch64-apple-darwin, aarch64-apple-ios
components: rust-src
- uses: Swatinem/rust-cache@v2
- run: cargo test --no-run --target=aarch64-apple-darwin --features=std
- run: cargo test --no-run --target=aarch64-apple-ios --features=std
- run: cargo test --no-run --target=aarch64-apple-watchos-sim -Zbuild-std --features=std
cross-link:
name: Cross Build/Link
@ -273,6 +275,9 @@ jobs:
aarch64-kmc-solid_asp3,
armv6k-nintendo-3ds,
riscv32imc-esp-espidf,
# `std` support still in progress. Can be moved up with the other
# apple targets after https://github.com/rust-lang/rust/pull/103503
aarch64-apple-tvos,
]
include:
# Supported tier 3 targets without libstd support

View File

@ -18,7 +18,7 @@ compiler_builtins = { version = "0.1", optional = true }
core = { version = "1.0", optional = true, package = "rustc-std-workspace-core" }
[target.'cfg(unix)'.dependencies]
libc = { version = "0.2.128", default-features = false }
libc = { version = "0.2.136", default-features = false }
[target.'cfg(target_os = "wasi")'.dependencies]
wasi = { version = "0.11", default-features = false }