|
13 | 13 | matrix:
|
14 | 14 | os: [ macos-latest ]
|
15 | 15 | # NOTE: when changing the MSRV version, change it below as well
|
16 |
| - rust: [ 1.70.0, stable, beta ] |
| 16 | + rust: [ 1.70.0, stable, nightly ] |
17 | 17 |
|
18 | 18 | steps:
|
19 | 19 | - name: Checkout sources
|
|
33 | 33 | - name: Check default features
|
34 | 34 | run: cargo check --all
|
35 | 35 |
|
| 36 | + lints: |
| 37 | + name: Lints and Breaking Changes |
| 38 | + runs-on: macos-latest |
| 39 | + steps: |
| 40 | + - name: Checkout sources |
| 41 | + uses: actions/checkout@v2 |
| 42 | + |
| 43 | + - name: Install stable toolchain |
| 44 | + uses: dtolnay/rust-toolchain@v1 |
| 45 | + with: |
| 46 | + toolchain: stable |
| 47 | + components: clippy, rustfmt |
| 48 | + |
| 49 | + - name: DO NOT USE RUSTFMT |
| 50 | + 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" |
| 51 | + |
| 52 | + - name: SemVer check |
| 53 | + uses: obi1kenobi/cargo-semver-checks-action@v2 |
| 54 | + |
| 55 | + - name: Run cargo clippy |
| 56 | + run: cargo clippy --all-features |
| 57 | + |
36 | 58 | ios:
|
37 | 59 | name: iOS compile-check
|
38 | 60 | runs-on: ubuntu-latest
|
|
64 | 86 | - name: Run check
|
65 | 87 | run: cargo check --all-features -p security-framework --target aarch64-apple-darwin
|
66 | 88 |
|
67 |
| - lints: |
68 |
| - name: Lints |
69 |
| - runs-on: macos-latest |
70 |
| - steps: |
71 |
| - - name: Checkout sources |
72 |
| - uses: actions/checkout@v2 |
73 |
| - |
74 |
| - - name: Install stable toolchain |
75 |
| - uses: dtolnay/rust-toolchain@v1 |
76 |
| - with: |
77 |
| - toolchain: stable |
78 |
| - components: clippy, rustfmt |
79 |
| - |
80 |
| - - name: DO NOT USE RUSTFMT |
81 |
| - 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" |
82 |
| - |
83 |
| - - name: Run cargo clippy |
84 |
| - run: cargo clippy --all-features |
|
0 commit comments