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 11name : CI
22
3+ permissions :
4+ contents : read
5+
36on :
47 pull_request :
58 push :
912 - cron : " 0 1 * * *"
1013
1114env :
12- RUSTFLAGS : -D warnings
15+ CARGO_INCREMENTAL : 0
16+ CARGO_NET_RETRY : 10
17+ CARGO_TERM_COLOR : always
1318 RUST_BACKTRACE : 1
19+ RUSTDOCFLAGS : -D warnings
20+ RUSTFLAGS : -D warnings
21+ RUSTUP_MAX_RETRIES : 10
22+
23+ defaults :
24+ run :
25+ shell : bash
1426
1527jobs :
1628 test :
17- name : test
1829 strategy :
1930 matrix :
2031 rust :
@@ -27,41 +38,33 @@ jobs:
2738 - nightly
2839 runs-on : ubuntu-latest
2940 steps :
30- - uses : actions/checkout@master
41+ - uses : actions/checkout@v3
3142 - name : Install Rust
3243 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
3847
3948 clippy :
40- name : clippy
4149 runs-on : ubuntu-latest
4250 steps :
43- - uses : actions/checkout@master
51+ - uses : actions/checkout@v3
4452 - 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
4855
4956 rustfmt :
50- name : rustfmt
5157 runs-on : ubuntu-latest
5258 steps :
53- - uses : actions/checkout@master
59+ - uses : actions/checkout@v3
5460 - 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
5863
5964 rustdoc :
60- name : rustdoc
6165 runs-on : ubuntu-latest
6266 steps :
63- - uses : actions/checkout@master
67+ - uses : actions/checkout@v3
6468 - name : Install Rust
6569 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