1
0
Fork 0
forked from mirror/grapevine

use all-features devshell for clippy/all in CI

Without this, we're building a static rocksdb inside the rust-rocksdb
build script every time. As far as I know this doesn't change clippy's
behavior, but it does take a *long* time.
This commit is contained in:
Benjamin Lee 2024-05-30 00:45:22 -07:00
parent fa48c48d52
commit 467417c32a
No known key found for this signature in database
GPG key ID: FB9624E2885D55A4
3 changed files with 11 additions and 8 deletions

2
.envrc
View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
use flake use flake ".#${DIRENV_DEVSHELL:-default}"
PATH_add bin PATH_add bin

View file

@ -51,6 +51,7 @@ ci() {
# Keep sorted # Keep sorted
"$toplevel#devShells.x86_64-linux.default" "$toplevel#devShells.x86_64-linux.default"
"$toplevel#devShells.x86_64-linux.all-features"
attic#default attic#default
nixpkgs#direnv nixpkgs#direnv
nixpkgs#jq nixpkgs#jq

View file

@ -68,13 +68,15 @@ script = "cargo clippy --workspace --all-targets --color=always -- -D warnings"
name = "cargo-clippy/all" name = "cargo-clippy/all"
group = "lints" group = "lints"
script = """ script = """
cargo clippy \ env DIRENV_DEVSHELL=all-features \
--workspace \ direnv exec . \
--all-targets \ cargo clippy \
--all-features \ --workspace \
--color=always \ --all-targets \
-- \ --all-features \
-D warnings --color=always \
-- \
-D warnings
""" """
[[task]] [[task]]