File tree 3 files changed +23
-41
lines changed
3 files changed +23
-41
lines changed Original file line number Diff line number Diff line change 4
4
directory : " /"
5
5
schedule :
6
6
interval : " daily"
7
+ - package-ecosystem : " github-actions"
8
+ directory : " /"
9
+ schedule :
10
+ interval : " daily"
Original file line number Diff line number Diff line change 6
6
runs-on : ubuntu-latest
7
7
steps :
8
8
- uses : actions/checkout@v2
9
- - uses : actions-rs/toolchain@v1
10
- with :
11
- components : rustfmt
12
- toolchain : nightly
13
- profile : minimal
14
- override : true
15
- - uses : actions-rs/cargo@v1
16
- with :
17
- command : fmt
18
- args : --all -- --check
9
+ - name : Setup Rust toolchain
10
+ run : rustup show && rustup update
11
+ - name : cargo fmt
12
+ run : cargo fmt --all -- --check
19
13
20
14
clippy :
21
15
name : cargo clippy
22
16
runs-on : ubuntu-latest
23
17
steps :
24
18
- uses : actions/checkout@v2
25
- - uses : actions-rs/toolchain@v1
26
- with :
27
- components : clippy
28
- toolchain : nightly
29
- profile : minimal
30
- override : true
31
- - uses : actions-rs/cargo@v1
32
- with :
33
- command : clippy
34
- args : --all-features -- -D warnings
19
+ - name : Setup Rust toolchain
20
+ run : rustup show && rustup update
21
+ - name : cargo clippy
22
+ run : cargo clippy --workspace --all-features --tests -- -D warnings
35
23
36
24
readme :
37
25
name : cargo readme
38
26
runs-on : ubuntu-latest
39
27
steps :
40
28
- uses : actions/checkout@v2
41
- - uses : actions-rs/toolchain@v1
42
- with :
43
- toolchain : nightly
44
- profile : minimal
45
- override : true
29
+ - name : Setup Rust toolchain
30
+ run : rustup show && rustup update
46
31
- run : cargo install cargo-readme
47
32
- run : cargo readme > README.md && git diff --exit-code
48
33
49
34
check-spdx-headers :
35
+ name : spdx check
50
36
runs-on : ubuntu-latest
51
37
steps :
52
38
- name : checkout
Original file line number Diff line number Diff line change 6
6
runs-on : ubuntu-latest
7
7
steps :
8
8
- uses : actions/checkout@v2
9
- - uses : actions-rs/toolchain@v1
10
- with :
11
- toolchain : ${{ matrix.toolchain }}
12
- override : true
13
- - uses : actions-rs/cargo@v1
14
- with :
15
- command : test
16
- args : ${{ matrix.profile.flag }} --features=${{ matrix.features }}
9
+ - name : Install Rust
10
+ run : rustup toolchain install ${{ matrix.toolchain }}
11
+ - name : cargo test
12
+ run : cargo +${{ matrix.toolchain }} test --features=${{ matrix.features }} ${{ matrix.profile.flag }}
17
13
strategy :
18
14
fail-fast : false
19
15
matrix :
@@ -47,14 +43,10 @@ jobs:
47
43
runs-on : [self-hosted, linux, sgx1]
48
44
steps :
49
45
- uses : actions/checkout@v2
50
- - uses : actions-rs/toolchain@v1
51
- with :
52
- toolchain : ${{ matrix.toolchain }}
53
- override : true
54
- - uses : actions-rs/cargo@v1
55
- with :
56
- command : test
57
- args : ${{ matrix.profile.flag }} --all-features
46
+ - name : Install Rust
47
+ run : rustup toolchain install ${{ matrix.toolchain }}
48
+ - name : cargo test
49
+ run : cargo +${{ matrix.toolchain }} test --all-features ${{ matrix.profile.flag }}
58
50
strategy :
59
51
fail-fast : false
60
52
matrix :
You can’t perform that action at this time.
0 commit comments