@@ -50,37 +50,34 @@ jobs:
5050 with :
5151 token : ${{ secrets.GITHUB_TOKEN }}
5252
53- ios-build :
53+ xcode-builds :
5454 runs-on : macOS-latest
5555 steps :
5656 - uses : actions/checkout@v6
5757 - uses : dtolnay/rust-toolchain@master
5858 with :
59- toolchain : stable
60- - name : Add iOS targets
61- run : rustup target add aarch64-apple-ios aarch64-apple-ios-sim
62- - name : Build iphonesimulator feedback example
63- run : cd examples/apple && xcodebuild ONLY_ACTIVE_ARCH=NO ARCHS=arm64 -scheme coreaudio-ios-example -configuration Debug -derivedDataPath build -sdk iphonesimulator
59+ toolchain : nightly
60+ components : rust-src
61+ targets : " aarch64-apple-ios,aarch64-apple-ios-sim"
62+ - run : xcodebuild ONLY_ACTIVE_ARCH=NO ARCHS=arm64 -scheme coreaudio-tvos-example -configuration Debug -derivedDataPath build -sdk appletvsimulator
63+ working-directory : examples/apple
64+ - run : xcodebuild ONLY_ACTIVE_ARCH=NO ARCHS=arm64 -scheme coreaudio-ios-example -configuration Debug -derivedDataPath build -sdk iphonesimulator
65+ working-directory : examples/apple
66+ - run : xcodebuild ONLY_ACTIVE_ARCH=NO ARCHS=arm64 -scheme coreaudio-visionos-example -configuration Debug -derivedDataPath build -sdk xrsimulator
67+ working-directory : examples/apple
6468
65- tvos-build :
69+ check-examples :
6670 runs-on : macOS-latest
71+ strategy :
72+ matrix :
73+ rust-target : [aarch64-apple-ios-sim, aarch64-apple-tvos-sim, aarch64-apple-visionos-sim]
6774 steps :
6875 - uses : actions/checkout@v6
6976 - uses : dtolnay/rust-toolchain@master
7077 with :
7178 toolchain : nightly
7279 components : rust-src
73- - name : Build for tvOS simulator
74- run : cd examples/apple && cargo +nightly build -Zbuild-std --target aarch64-apple-tvos-sim --release
75- - name : Build for tvOS device
76- run : cd examples/apple && cargo +nightly build -Zbuild-std --target aarch64-apple-tvos --release
77- - uses : dtolnay/rust-toolchain@master
78- with :
79- toolchain : stable
80- - name : Add iOS targets
81- run : rustup target add aarch64-apple-ios aarch64-apple-ios-sim
82- - name : Build appletvsimulator example
83- run : cd examples/apple && xcodebuild ONLY_ACTIVE_ARCH=NO ARCHS=arm64 -scheme coreaudio-tvos-example -configuration Debug -derivedDataPath build -sdk appletvsimulator
80+ - run : cargo +nightly build -Zbuild-std --all --target ${{ matrix.rust-target }}
8481
8582 # Build the docs with all features to make sure docs.rs will work.
8683 macos-docs :
0 commit comments