Skip to content

Commit a2b2b5f

Browse files
committed
Add iOS build to CI
1 parent 7e12bdb commit a2b2b5f

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/cpal.yml

Lines changed: 20 additions & 2 deletions
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:
@@ -285,3 +285,21 @@ jobs:
285285
run: cargo install cargo-apk
286286
- name: Build APK
287287
run: cargo apk build --example beep
288+
289+
ios-build:
290+
runs-on: macOS-latest
291+
steps:
292+
- uses: actions/checkout@v2
293+
- name: Install llvm and clang
294+
run: brew install llvm
295+
- name: Install stable
296+
uses: actions-rs/toolchain@v1
297+
with:
298+
profile: minimal
299+
toolchain: stable
300+
override: true
301+
- name: Build iphoneos feedback example
302+
run: xcodebuild -scheme cpal-ios-example -configuration Debug -derivedDataPath build -sdk iphoneos
303+
- name: Build iphonesimulator feedback example
304+
run: xcodebuild -scheme cpal-ios-example -configuration Debug -derivedDataPath build -sdk iphonesimulator
305+

0 commit comments

Comments
 (0)