-
-
Notifications
You must be signed in to change notification settings - Fork 13
67 lines (62 loc) · 1.59 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
old_xcode:
strategy:
fail-fast: false
matrix:
version:
- '1.33.0'
- stable
xcode-version:
- '12.5.1'
runs-on: macos-11
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode-version }}
- run: TARGET=x86_64-apple-darwin RUST_VERSION=${{ matrix.version }} ci/run.sh
xcode_test:
strategy:
fail-fast: false
matrix:
version:
- '13.4.1'
- '14.2.0'
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.version }}
- run: TARGET=x86_64-apple-darwin RUST_VERSION=nightly ci/run.sh
target_test:
strategy:
fail-fast: false
matrix:
target:
- aarch64-apple-darwin
- aarch64-apple-ios
- aarch64-apple-ios-sim
- x86_64-apple-ios
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.2.0'
- run: TARGET=${{ matrix.target }} RUST_VERSION=nightly NOCTEST=1 NORUN=1 ci/run.sh
style_check:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.2.0'
- run: rustup component add rustfmt clippy
- run: cargo fmt --all -- --check
- run: cargo clippy --workspace -- -D warnings