Add iOS build to CI

This commit is contained in:
Michael Hills 2020-12-05 23:14:13 +11:00
parent b9b36d6a9a
commit f9f6990d9e

View file

@ -287,3 +287,23 @@ jobs:
run: cargo install cargo-apk run: cargo install cargo-apk
- name: Build APK - name: Build APK
run: cargo apk build --example android run: cargo apk build --example android
ios-build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Install llvm and clang
run: brew install llvm
- name: Install stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Add iOS targets
run: rustup target add aarch64-apple-ios x86_64-apple-ios
- name: Install cargo lipo
run: cargo install cargo-lipo
- name: Build iphonesimulator feedback example
run: cd examples/ios-feedback && xcodebuild -scheme cpal-ios-example -configuration Debug -derivedDataPath build -sdk iphonesimulator