File tree Expand file tree Collapse file tree 1 file changed +25
-22
lines changed Expand file tree Collapse file tree 1 file changed +25
-22
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
+ permissions :
4
+ contents : read
5
+
3
6
on :
4
7
pull_request :
5
8
push :
9
12
- cron : " 0 1 * * *"
10
13
11
14
env :
12
- RUSTFLAGS : -D warnings
15
+ CARGO_INCREMENTAL : 0
16
+ CARGO_NET_RETRY : 10
17
+ CARGO_TERM_COLOR : always
13
18
RUST_BACKTRACE : 1
19
+ RUSTDOCFLAGS : -D warnings
20
+ RUSTFLAGS : -D warnings
21
+ RUSTUP_MAX_RETRIES : 10
22
+
23
+ defaults :
24
+ run :
25
+ shell : bash
14
26
15
27
jobs :
16
28
test :
17
- name : test
18
29
strategy :
19
30
matrix :
20
31
rust :
@@ -27,41 +38,33 @@ jobs:
27
38
- nightly
28
39
runs-on : ubuntu-latest
29
40
steps :
30
- - uses : actions/checkout@master
41
+ - uses : actions/checkout@v3
31
42
- name : Install Rust
32
43
run : rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
33
- - name : cargo test
34
- run : |
35
- cargo build
36
- cargo test
37
- cargo test --release
44
+ - run : cargo build
45
+ - run : cargo test
46
+ - run : cargo test --release
38
47
39
48
clippy :
40
- name : clippy
41
49
runs-on : ubuntu-latest
42
50
steps :
43
- - uses : actions/checkout@master
51
+ - uses : actions/checkout@v3
44
52
- name : Install Rust
45
- run : rustup update stable && rustup default stable
46
- - name : cargo clippy
47
- run : cargo clippy --all --all-targets
53
+ run : rustup update stable
54
+ - run : cargo clippy --all --all-targets
48
55
49
56
rustfmt :
50
- name : rustfmt
51
57
runs-on : ubuntu-latest
52
58
steps :
53
- - uses : actions/checkout@master
59
+ - uses : actions/checkout@v3
54
60
- name : Install Rust
55
- run : rustup update stable && rustup default stable
56
- - name : cargo fmt
57
- run : cargo fmt --all -- --check
61
+ run : rustup update stable
62
+ - run : cargo fmt --all --check
58
63
59
64
rustdoc :
60
- name : rustdoc
61
65
runs-on : ubuntu-latest
62
66
steps :
63
- - uses : actions/checkout@master
67
+ - uses : actions/checkout@v3
64
68
- name : Install Rust
65
69
run : rustup update nightly && rustup default nightly
66
- - name : cargo doc
67
- run : RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
70
+ - run : cargo doc --no-deps
You can’t perform that action at this time.
0 commit comments