Skip to content

Commit 5edb045

Browse files
authored
CI: Build and link tvOS and watchOS targets (#489)
1 parent 6bb19a2 commit 5edb045

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/tests.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ jobs:
174174

175175
macos-link:
176176
name: macOS ARM64 Build/Link
177-
runs-on: macos-12
177+
# visionOS requires Xcode 15.2+, which is only available on the arm64 runners.
178+
runs-on: macos-14
178179
steps:
179180
- uses: actions/checkout@v4
180181
- uses: dtolnay/rust-toolchain@nightly
@@ -184,7 +185,11 @@ jobs:
184185
- uses: Swatinem/rust-cache@v2
185186
- run: cargo test --no-run --target=aarch64-apple-darwin --features=std
186187
- run: cargo test --no-run --target=aarch64-apple-ios --features=std
187-
- run: cargo test --no-run --target=aarch64-apple-watchos-sim -Zbuild-std --features=std
188+
- run: cargo test --no-run --target=aarch64-apple-tvos -Zbuild-std --features=std
189+
- run: cargo test --no-run --target=aarch64-apple-watchos -Zbuild-std --features=std
190+
# visionOS requires Xcode 15.2+, GitHub Actions defaults to an older version.
191+
- run: sudo xcode-select -switch /Applications/Xcode_15.2.app
192+
- run: cargo test --no-run --target=aarch64-apple-visionos -Zbuild-std --features=std
188193

189194
cross-link:
190195
name: Cross Build/Link
@@ -318,9 +323,6 @@ jobs:
318323
armv7-sony-vita-newlibeabihf,
319324
riscv32imc-esp-espidf,
320325
aarch64-unknown-nto-qnx710,
321-
# `std` support still in progress. Can be moved up with the other
322-
# apple targets after https://github.com/rust-lang/rust/pull/103503
323-
aarch64-apple-tvos,
324326
]
325327
include:
326328
- target: aarch64-unknown-nto-qnx710

0 commit comments

Comments
 (0)