Skip to content

Commit

Permalink
ci: fix msrv just variable
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed May 18, 2024
1 parent 8cf79d3 commit 38ae762
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 38ae762

Please sign in to comment.