@@ -10,18 +10,13 @@ jobs:
10
10
format :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v4
14
14
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
25
20
26
21
build :
27
22
strategy :
34
29
35
30
steps :
36
31
- name : Checkout
37
- uses : actions/checkout@v3
32
+ uses : actions/checkout@v4
38
33
39
34
- run : rustup component add clippy
40
35
@@ -43,16 +38,18 @@ jobs:
43
38
run : sudo apt-get install libdbus-1-dev
44
39
45
40
- 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
50
43
51
44
- 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
56
53
57
54
- name : Test
58
55
run : cargo test --all
0 commit comments