1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 20:51:06 +01:00

ci: fix msrv just variable

This commit is contained in:
Rob Ede 2024-05-18 17:34:18 +01:00
parent 8cf79d3d13
commit 38ae762569
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -8,7 +8,7 @@ downgrade-for-msrv:
msrv := ```
cargo metadata --format-version=1 \
| jq -r 'first(.packages[] | select(.source == null and .name == "actix-tls")) | .rust_version' \
| jq -r 'first(.packages[] | select(.source == null and .rust_version)) | .rust_version' \
| sed -E 's/^1\.([0-9]{2})$/1\.\1\.0/'
```
msrv_rustup := "+" + msrv
@ -27,13 +27,6 @@ all_crate_features := if os() == "linux" {
"--features='" + non_linux_all_features_list + "'"
}
m:
cargo metadata --format-version=1 \
| jq -r 'first(.packages[] | select(.source == null)) | .rust_version' \
| sed -E 's/^1\.([0-9]{2})$/1\.\1\.0/' \
| xargs -0 printf "msrv=%s" \
| tee /dev/stderr
# Test workspace code.
test toolchain="":
cargo {{ toolchain }} test --lib --tests --package=actix-macros
@ -48,7 +41,7 @@ test-docs toolchain="": && doc
cargo {{ toolchain }} test --doc --workspace {{ all_crate_features }} --no-fail-fast -- --nocapture
# Test workspace.
test-all toolchain="": (test toolchain) (test-docs)
test-all toolchain="": (test toolchain) (test-docs toolchain)
# Document crates in workspace.
doc *args: