Skip to content

Commit f9f6990

Browse files
committed
Add iOS build to CI
1 parent b9b36d6 commit f9f6990

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/cpal.yml

+22-2
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ jobs:
135135
with:
136136
command: check
137137
use-cross: true
138-
args: --target armv7-unknown-linux-gnueabihf --workspace --all-features --verbose
138+
args: --target armv7-unknown-linux-gnueabihf --workspace --all-features --verbose
139139

140140
- name: Test all features for armv7
141141
uses: actions-rs/cargo@v1
142142
with:
143143
command: test
144144
use-cross: true
145-
args: --target armv7-unknown-linux-gnueabihf --workspace --all-features --verbose
145+
args: --target armv7-unknown-linux-gnueabihf --workspace --all-features --verbose
146146

147147
asmjs-wasm32-test:
148148
strategy:
@@ -287,3 +287,23 @@ jobs:
287287
run: cargo install cargo-apk
288288
- name: Build APK
289289
run: cargo apk build --example android
290+
291+
ios-build:
292+
runs-on: macOS-latest
293+
steps:
294+
- uses: actions/checkout@v2
295+
- name: Install llvm and clang
296+
run: brew install llvm
297+
- name: Install stable
298+
uses: actions-rs/toolchain@v1
299+
with:
300+
profile: minimal
301+
toolchain: stable
302+
override: true
303+
- name: Add iOS targets
304+
run: rustup target add aarch64-apple-ios x86_64-apple-ios
305+
- name: Install cargo lipo
306+
run: cargo install cargo-lipo
307+
- name: Build iphonesimulator feedback example
308+
run: cd examples/ios-feedback && xcodebuild -scheme cpal-ios-example -configuration Debug -derivedDataPath build -sdk iphonesimulator
309+

0 commit comments

Comments
 (0)