44 pull_request :
55 push :
66 branches :
7+ - master
78 - staging
89 - trying
910
11+ env :
12+ RUSTFLAGS : -Dwarnings
13+
1014jobs :
1115 build_and_test :
1216 name : Build and test
1317 runs-on : ${{ matrix.os }}
1418 strategy :
1519 matrix :
1620 os : [ubuntu-latest, windows-latest, macOS-latest]
17- rust : [nightly]
21+ rust : [nightly, beta, stable ]
1822
1923 steps :
2024 - uses : actions/checkout@master
@@ -29,35 +33,50 @@ jobs:
2933 uses : actions-rs/cargo@v1
3034 with :
3135 command : check
32- args : --all --benches -- bins --examples --tests
36+ args : --all --bins --tests
3337
3438 - name : check unstable
3539 uses : actions-rs/cargo@v1
3640 with :
3741 command : check
38- args : --features unstable --all --benches --bins --examples --tests
42+ args : --features unstable --all --bins --examples --tests
43+ - name : check bench
44+ uses : actions-rs/cargo@v1
45+ if : matrix.rust == 'nightly'
46+ with :
47+ command : check
48+ args : --benches
49+
50+ - name : check std only
51+ uses : actions-rs/cargo@v1
52+ with :
53+ command : check
54+ args : --no-default-features --features std
55+
56+ - name : check attributes
57+ uses : actions-rs/cargo@v1
58+ with :
59+ command : check
60+ args : --features attributes
3961
4062 - name : tests
4163 uses : actions-rs/cargo@v1
4264 with :
4365 command : test
44- args : --all --doc -- features unstable
66+ args : --all --features unstable attributes
4567
4668 check_fmt_and_docs :
4769 name : Checking fmt and docs
4870 runs-on : ubuntu-latest
4971 steps :
5072 - uses : actions/checkout@master
5173
52- - id : component
53- uses : actions-rs/components-nightly@v1
54- with :
55- component : rustfmt
56-
5774 - uses : actions-rs/toolchain@v1
5875 with :
59- toolchain : ${{ steps.component.outputs.toolchain }}
76+ profile : minimal
77+ toolchain : nightly
6078 override : true
79+ components : rustfmt
6180
6281 - name : setup
6382 run : |
@@ -74,20 +93,14 @@ jobs:
7493 - name : Docs
7594 run : cargo doc --features docs
7695
77- clippy_check :
78- name : Clippy check
79- runs-on : ubuntu-latest
80- steps :
81- - uses : actions/checkout@v1
82- - id : component
83- uses : actions-rs/components-nightly@v1
84- with :
85- component : clippy
86- - uses : actions-rs/toolchain@v1
87- with :
88- toolchain : ${{ steps.component.outputs.toolchain }}
89- override : true
90- - run : rustup component add clippy
91- - uses : actions-rs/clippy-check@v1
92- with :
93- token : ${{ secrets.GITHUB_TOKEN }}
96+ # clippy_check:
97+ # name: Clippy check
98+ # runs-on: ubuntu-latest
99+ # steps:
100+ # - uses: actions/checkout@v1
101+ # - name: Install rust
102+ # run: rustup update beta && rustup default beta
103+ # - name: Install clippy
104+ # run: rustup component add clippy
105+ # - name: clippy
106+ # run: cargo clippy --all --features unstable
0 commit comments