8
8
- staging
9
9
- trying
10
10
11
- env :
12
- RUSTFLAGS : -Dwarnings
13
-
14
11
jobs :
15
12
build_and_test :
16
13
name : Build and test
23
20
steps :
24
21
- uses : actions/checkout@master
25
22
26
- - name : Install ${{ matrix.rust }}
23
+ - name : Install ${{ matrix.rust }} toolchain
27
24
uses : actions-rs/toolchain@v1
28
25
with :
29
26
toolchain : ${{ matrix.rust }}
@@ -33,13 +30,13 @@ jobs:
33
30
uses : actions-rs/cargo@v1
34
31
with :
35
32
command : check
36
- args : --workspace --benches --bins --examples --tests --features hyperium_http
33
+ args : --workspace --all-targets --features hyperium_http
37
34
38
35
- name : check unstable
39
36
uses : actions-rs/cargo@v1
40
37
with :
41
38
command : check
42
- args : --workspace --benches --bins --examples --tests --features "hyperium_http,unstable"
39
+ args : --workspace --all-targets --features "hyperium_http,unstable"
43
40
44
41
- name : tests
45
42
uses : actions-rs/cargo@v1
@@ -53,31 +50,36 @@ jobs:
53
50
steps :
54
51
- uses : actions/checkout@master
55
52
53
+ - name : Install nightly toolchain
54
+ uses : actions-rs/toolchain@v1
55
+ with :
56
+ profile : minimal
57
+ toolchain : nightly
58
+ override : true
59
+ components : clippy, rustfmt
60
+
56
61
- name : clippy
57
- run : cargo clippy --workspace --benches --bins --examples --tests -- features "hyperium_http,unstable" -- -D warnings
62
+ run : cargo clippy --workspace --all-targets --features "hyperium_http,unstable"
58
63
59
64
- name : fmt
60
65
run : cargo fmt --all -- --check
61
66
62
67
- name : docs
63
68
run : cargo doc --no-deps
64
69
65
- # check_wasm:
66
- # name: Check wasm targets
67
- # runs-on: ubuntu-latest
68
-
69
- # steps:
70
- # - uses: actions/checkout@master
71
-
72
- # - name: Install nightly with wasm32-unknown-unknown
73
- # uses: actions-rs/toolchain@v1
74
- # with:
75
- # toolchain: nightly
76
- # target: wasm32-unknown-unknown
77
- # override: true
78
-
79
- # - name: check
80
- # uses: actions-rs/cargo@v1
81
- # with:
82
- # command: check
83
- # args: --target wasm32-unknown-unknown
70
+ check_wasm :
71
+ name : Check wasm targets
72
+ runs-on : ubuntu-latest
73
+
74
+ steps :
75
+ - uses : actions/checkout@master
76
+
77
+ - name : Install nightly with wasm32-unknown-unknown
78
+ uses : actions-rs/toolchain@v1
79
+ with :
80
+ toolchain : nightly
81
+ target : wasm32-unknown-unknown
82
+ override : true
83
+
84
+ - name : check
85
+ run : cargo check --target wasm32-unknown-unknown --no-default-features --features=fs,serde
0 commit comments