44
44
- js,derive
45
45
- js,hmac-sha1
46
46
include :
47
+ - crate_name : oauth1-request
47
48
- toolchain : stable
48
49
components : clippy
49
50
- toolchain : beta
53
54
- toolchain : stable
54
55
features : js
55
56
target : wasm32-unknown-unknown
57
+ crate_name : oauth1-request
58
+ - toolchain : ' 1.46.0'
59
+ msrv : true
60
+ crate_name : oauth1-request-test
56
61
steps :
57
62
- uses : actions/checkout@v2
58
63
- name : Install Rust toolchain
@@ -77,37 +82,41 @@ jobs:
77
82
tar -xzf "$NAME.tar.gz" "$NAME/wasm-bindgen-test-runner"
78
83
mv "$NAME/wasm-bindgen-test-runner" /usr/local/bin/
79
84
- run : echo "RUSTFLAGS=$RUSTFLAGS --allow unknown_lints" >> "$GITHUB_ENV"
80
- if : matrix.toolchain == '1.46.0'
85
+ if : matrix.msrv
81
86
- run : echo 'CARGO_BUILD_TARGET=${{ matrix.target }}' >> "$GITHUB_ENV"
82
87
if : matrix.target != ''
88
+ - run : rm Cargo.toml
89
+ if : matrix.crate_name == 'oauth1-request-test'
83
90
- name : Clippy `oauth1-request`
84
91
if : contains(matrix.components, 'clippy')
85
92
uses : actions-rs/cargo@v1
86
93
with :
87
94
command : clippy
88
- args : --verbose --tests --manifest-path oauth1-request /Cargo.toml --no-default-features '--features=${{ matrix.features }}'
95
+ args : --verbose --tests --manifest-path ${{ matrix.crate_name }} /Cargo.toml --no-default-features '--features=${{ matrix.features }}'
89
96
- name : Check docs of `oauth1-request`
90
97
if : matrix.features == 'js,derive'
91
98
uses : actions-rs/cargo@v1
92
99
with :
93
100
command : doc
94
- args : --verbose --manifest-path oauth1-request /Cargo.toml --no-default-features '--features=${{ matrix.features }}' --no-deps
101
+ args : --verbose --manifest-path ${{ matrix.crate_name }} /Cargo.toml --no-default-features '--features=${{ matrix.features }}' --no-deps
95
102
- name : Build `oauth1-request`
103
+ if : matrix.crate_name != 'oauth1-request-test' || !contains(matrix.features, 'derive')
96
104
uses : actions-rs/cargo@v1
97
105
with :
98
106
command : build
99
- args : --verbose --tests --manifest-path oauth1-request /Cargo.toml --no-default-features '--features=${{ matrix.features }}'
107
+ args : --verbose --tests --manifest-path ${{ matrix.crate_name }} /Cargo.toml --no-default-features '--features=${{ matrix.features }}'
100
108
- name : Build `examples`
101
- if : ${{ matrix.target == '' && matrix.toolchain != '1.46.0' }}
109
+ if : ${{ matrix.target == '' && ! matrix.msrv }}
102
110
uses : actions-rs/cargo@v1
103
111
with :
104
112
command : build
105
113
args : --verbose --manifest-path examples/Cargo.toml
106
114
- name : Test `oauth1-request`
115
+ if : ${{ matrix.target == '' && !matrix.msrv }}
107
116
uses : actions-rs/cargo@v1
108
117
with :
109
118
command : test
110
- args : --manifest-path oauth1-request /Cargo.toml --no-default-features '--features=${{ matrix.features }}'
119
+ args : --manifest-path ${{ matrix.crate_name }} /Cargo.toml --no-default-features '--features=${{ matrix.features }}'
111
120
derive-test :
112
121
name : Test `oauth1-request-derive`
113
122
runs-on : ubuntu-latest
0 commit comments