Add iOS build to CI
This commit is contained in:
parent
b9b36d6a9a
commit
f9f6990d9e
1 changed files with 22 additions and 2 deletions
24
.github/workflows/cpal.yml
vendored
24
.github/workflows/cpal.yml
vendored
|
|
@ -135,14 +135,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
command: check
|
command: check
|
||||||
use-cross: true
|
use-cross: true
|
||||||
args: --target armv7-unknown-linux-gnueabihf --workspace --all-features --verbose
|
args: --target armv7-unknown-linux-gnueabihf --workspace --all-features --verbose
|
||||||
|
|
||||||
- name: Test all features for armv7
|
- name: Test all features for armv7
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
use-cross: true
|
use-cross: true
|
||||||
args: --target armv7-unknown-linux-gnueabihf --workspace --all-features --verbose
|
args: --target armv7-unknown-linux-gnueabihf --workspace --all-features --verbose
|
||||||
|
|
||||||
asmjs-wasm32-test:
|
asmjs-wasm32-test:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue