-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (41 loc) · 1.17 KB
/
ci.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
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [macos-15]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: ls apps
run: ls -la /Applications
- name: os ver
run: sw_vers
- name: switch xcode
run: sudo xcode-select -s '/Applications/Xcode_16.app'
- name: list sdks
run: xcodebuild -showsdks
- name: macosx sdk version
run: xcodebuild -version -sdk macosx
- name: add targets
run: >
rustup target add aarch64-apple-ios &&
rustup target add aarch64-apple-ios-sim &&
rustup target add x86_64-apple-darwin &&
rustup +nightly target add aarch64-apple-darwin &&
rustup +nightly target add aarch64-apple-ios &&
rustup component add rust-src --toolchain nightly-aarch64-apple-darwin
- name: Build
run: ./build.sh
- name: Test ns
run: 'cargo t --features="macos_14_0" ns::'
- name: Test cf
run: 'cargo t --features="macos_14_0" cf::'