Skip to content

Commit 91e0c01

Browse files
committed
Update CI
1 parent 7bf5a07 commit 91e0c01

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

.github/workflows/ci.yml

+13-20
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,10 @@ 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: rustfmt
16+
run: cargo +nightly fmt --all --check
2517

2618
build:
2719
strategy:
@@ -34,7 +26,7 @@ jobs:
3426

3527
steps:
3628
- name: Checkout
37-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3830

3931
- run: rustup component add clippy
4032

@@ -43,16 +35,17 @@ jobs:
4335
run: sudo apt-get install libdbus-1-dev
4436

4537
- name: Clippy (default)
46-
uses: actions-rs/clippy-check@v1
47-
with:
48-
token: ${{ secrets.GITHUB_TOKEN }}
49-
args: --all-targets -- -D warnings
38+
run: |
39+
cargo clippy --all-targets -- -D warnings
5040
5141
- 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
42+
run: |
43+
cargo clippy --all-targets --all-features -- -D warnings
44+
45+
- name: Clippy (iOS)
46+
if: ${{ runner.os == 'macOS'}}
47+
run: |
48+
cargo clippy --all-targets --target=aarch64-apple-ios -- -D warnings
5649
5750
- name: Test
5851
run: cargo test --all

0 commit comments

Comments
 (0)