Skip to content

Commit 0c430de

Browse files
committed
Update CI
1 parent 7bf5a07 commit 0c430de

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

.github/workflows/ci.yml

+17-20
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,13 @@ jobs:
1010
format:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414

15-
- name: Install Rust (nightly)
16-
uses: actions-rs/toolchain@v1
17-
with:
18-
profile: minimal
19-
toolchain: nightly
20-
override: true
21-
components: rustfmt
22-
23-
- name: Format Rust code
24-
run: cargo +nightly fmt --all -- --check
15+
- name: Install nightly toolchain
16+
run: rustup toolchain add nightly --profile minimal --component rustfmt
17+
18+
- name: rustfmt
19+
run: cargo +nightly fmt --all --check
2520

2621
build:
2722
strategy:
@@ -34,7 +29,7 @@ jobs:
3429

3530
steps:
3631
- name: Checkout
37-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3833

3934
- run: rustup component add clippy
4035

@@ -43,16 +38,18 @@ jobs:
4338
run: sudo apt-get install libdbus-1-dev
4439

4540
- name: Clippy (default)
46-
uses: actions-rs/clippy-check@v1
47-
with:
48-
token: ${{ secrets.GITHUB_TOKEN }}
49-
args: --all-targets -- -D warnings
41+
run: |
42+
cargo clippy --all-targets -- -D warnings
5043
5144
- name: Clippy (all features)
52-
uses: actions-rs/clippy-check@v1
53-
with:
54-
token: ${{ secrets.GITHUB_TOKEN }}
55-
args: --all-targets --all-features -- -D warnings
45+
run: |
46+
cargo clippy --all-targets --all-features -- -D warnings
47+
48+
- name: Clippy (iOS)
49+
if: ${{ runner.os == 'macOS'}}
50+
run: |
51+
rustup target add aarch64-apple-ios
52+
cargo clippy --all-targets --target=aarch64-apple-ios -- -D warnings
5653
5754
- name: Test
5855
run: cargo test --all

0 commit comments

Comments
 (0)