-
Notifications
You must be signed in to change notification settings - Fork 38
111 lines (99 loc) · 3.33 KB
/
coreaudio-sys.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: coreaudio-sys
on: [push, pull_request]
jobs:
# Run cargo test with default, no and all features.
macos-test:
runs-on: macOS-latest
strategy:
matrix:
toolchain: [stable, nightly]
steps:
- uses: actions/checkout@v4
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2.0.3
with:
version: "15.0"
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: cargo test
run: cargo test --verbose
- name: cargo test - no features
run: cargo test --no-default-features --verbose
- name: cargo test - all features
run: cargo test --all-features --verbose
ios-check:
runs-on: macOS-14
strategy:
matrix:
toolchain: [stable, nightly]
target: [aarch64-apple-ios, x86_64-apple-ios, aarch64-apple-ios-sim]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2.0.3
with:
version: "15.0"
- name: add ios targets
run: rustup target add ${{matrix.target}}
- name: Build for iOS target ${{matrix.target}}
run: cargo build --verbose --target=${{matrix.target}}
visionos-check:
runs-on: macOS-latest
strategy:
matrix:
target: [aarch64-apple-visionos, aarch64-apple-visionos-sim]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: nightly
components: rust-src
- name: Install Xcode Command Line Tools
run: sudo xcode-select --switch /Applications/Xcode_15.4.app/Contents/Developer
# run: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md
- name: Show Xcode SDKs
run: xcodebuild -showsdks
- name: Find AudioUnit.h
run: find /Applications/Xcode_15.4.app -name AudioUnit.h
- name: Build for visionOS target ${{matrix.target}}
run: cargo +nightly build -Z build-std=std,panic_abort --verbose --target=${{matrix.target}}
# Build the docs with all features to make sure docs.rs will work.
macos-docs:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2.0.3
with:
version: "15.0"
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: cargo doc - all features
run: cargo doc --all-features --verbose
# Publish a new version when pushing to master.
# Will succeed if the version has been updated, otherwise silently fails.
cargo-publish:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
CRATESIO_TOKEN: ${{ secrets.CRATESIO_TOKEN }}
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2.0.3
with:
version: "15.0"
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: cargo publish
continue-on-error: true
run: cargo publish --token $CRATESIO_TOKEN