-
Notifications
You must be signed in to change notification settings - Fork 90
84 lines (67 loc) · 2.01 KB
/
main.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
name: CI
on:
pull_request:
push:
branches: main
jobs:
test:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest ]
rust: [ 1.70.0, stable, nightly ]
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
- name: Run cargo test
run: cargo test --all-features --all
- name: Check default features
run: cargo check --all
lints:
name: Lints and Breaking Changes
runs-on: macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: clippy, rustfmt
- name: DO NOT USE RUSTFMT
run: "if cargo fmt --quiet --check -- --config-path=/dev/null; then echo >&2 'Do not reformat the code with rustfmt. This project does not use rustfmt.'; fi"
- name: SemVer check
uses: obi1kenobi/cargo-semver-checks-action@v2
- name: Run cargo clippy
run: cargo clippy --all-features
ios:
name: iOS compile-check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
target: aarch64-apple-ios
- name: Run check
run: cargo check --all-features -p security-framework --target aarch64-apple-ios
apple-intel:
name: Old x86-64 test
runs-on: macos-13
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
target: x86_64-apple-darwin
- name: Run test
run: cargo test --all-features -p security-framework --target x86_64-apple-darwin