Skip to content

Commit 57e667d

Browse files
committed
Add dependabot, add matrix for ios targets in ci
1 parent f7f7b02 commit 57e667d

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
# Check for updates to GitHub Actions every weekday
8+
interval: "daily"
9+
10+
# Maintain dependencies for Cargo
11+
- package-ecosystem: "cargo"
12+
directory: "/"
13+
schedule:
14+
interval: "daily"

.github/workflows/coreaudio-sys.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,31 @@ jobs:
2424
- name: cargo test - all features
2525
run: cargo test --all-features --verbose
2626

27+
ios-check:
28+
runs-on: macOS-latest
29+
strategy:
30+
matrix:
31+
toolchain: [stable, nightly]
32+
target: [aarch64-apple-ios, x86_64-apple-ios, aarch64-apple-ios-sim]
33+
steps:
34+
- uses: actions/checkout@v2
35+
- name: Install stable rust toolchain
36+
uses: actions-rs/toolchain@v1
37+
with:
38+
profile: minimal
39+
toolchain: ${{ matrix.toolchain }}
40+
override: true
41+
42+
- name: Install LLVM and Clang
43+
uses: KyleMayes/install-llvm-action@v1.5.0
44+
with:
45+
version: "13.0"
46+
2747
- name: add ios targets
28-
run: rustup target add aarch64-apple-ios x86_64-apple-ios
29-
- name: Build ios targets
30-
run: for i in aarch64-apple-ios x86_64-apple-ios; do cargo build --verbose --target=$i; done
48+
run: rustup target add ${{matrix.target}}
49+
50+
- name: Build for iOS target ${{matrix.target}}
51+
run: cargo build --verbose --target=${{matrix.target}}
3152

3253
# Build the docs with all features to make sure docs.rs will work.
3354
macos-docs:

0 commit comments

Comments
 (0)