Skip to content

Commit 1f15f4d

Browse files
Copilotkraenhansen
andcommitted
Add visionOS target installation step with graceful fallback for tier 3 targets
Co-authored-by: kraenhansen <1243959+kraenhansen@users.noreply.github.com>
1 parent 047b8d1 commit 1f15f4d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/check-visionos.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
else
3838
echo "⚠️ visionOS SDK not found - may need Xcode 15+ with visionOS support"
3939
fi
40-
# Install required iOS targets for the bootstrap process
40+
# Install required iOS target for the bootstrap process
4141
- run: rustup target add aarch64-apple-ios-sim
4242
- run: npm ci
4343
- run: npm run build
@@ -67,6 +67,14 @@ jobs:
6767
# Verify cargo config is properly set
6868
echo "Cargo config created:"
6969
cat packages/ferric-example/.cargo/config.toml
70+
# Install visionOS targets after cargo configuration (tier 3 targets with build-std)
71+
- name: Install visionOS Rust targets
72+
run: |
73+
echo "Attempting to install visionOS targets..."
74+
rustup target add aarch64-apple-visionos aarch64-apple-visionos-sim || {
75+
echo "⚠️ visionOS targets not available as prebuilt - relying on build-std"
76+
echo "This is expected for tier 3 targets"
77+
}
7078
- name: Verify build-std setup and bootstrap ferric-example
7179
run: |
7280
# Verify nightly toolchain and components
@@ -75,6 +83,9 @@ jobs:
7583
cargo --version
7684
rustup component list --installed --toolchain nightly
7785
86+
echo "=== Installed Rust Targets ==="
87+
rustup target list --installed --toolchain nightly
88+
7889
echo "=== Testing visionOS SDK availability ==="
7990
xcrun --sdk xros --show-sdk-path || echo "visionOS SDK not available - continuing anyway"
8091

0 commit comments

Comments
 (0)