Skip to content

Commit

Permalink
test: Build code with all feature combinations
Browse files Browse the repository at this point in the history
`just build_features` is called by `just check`, which is called by
GitHub CI.
  • Loading branch information
uncomputable committed Sep 28, 2024
1 parent 444ac2c commit 976c6c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
defaultRust
pkgs.just
pkgs.gdb
pkgs.cargo-hack
] ++ (
if with_elements then [ elementsd-simplicity ] else []
);
Expand All @@ -57,6 +58,7 @@
buildInputs = [
(mkRust "stable" "latest" "default" [])
pkgs.just
pkgs.cargo-hack
];
};
msrv = pkgs.mkShell {
Expand Down
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ fmtcheck:
lint:
cargo clippy --all-targets --workspace -- --deny warnings

# Build code with all feature combinations
build_features:
cargo hack check --feature-powerset --no-dev-deps

# Run unit tests
test:
cargo test --workspace
Expand All @@ -20,6 +24,7 @@ check:
rustc --version
just fmtcheck
just lint
just build_features
just test

# Run fuzz test for 30 seconds
Expand Down

0 comments on commit 976c6c4

Please sign in to comment.