File tree 1 file changed +13
-20
lines changed
1 file changed +13
-20
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,10 @@ 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 : rustfmt
16
+ run : cargo +nightly fmt --all --check
25
17
26
18
build :
27
19
strategy :
34
26
35
27
steps :
36
28
- name : Checkout
37
- uses : actions/checkout@v3
29
+ uses : actions/checkout@v4
38
30
39
31
- run : rustup component add clippy
40
32
@@ -43,16 +35,17 @@ jobs:
43
35
run : sudo apt-get install libdbus-1-dev
44
36
45
37
- 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
50
40
51
41
- 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
56
49
57
50
- name : Test
58
51
run : cargo test --all
You can’t perform that action at this time.
0 commit comments