Skip to content

Commit 6c29b0c

Browse files
committed
ci(hydra): build test in release mode for faster runtime
This allow test to re-use artifacts built in the build phase. This should reduce the number of timeout we see in the hydra ci.
1 parent f291606 commit 6c29b0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flake.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
cargoArtifacts = buildDeps cargoToml baseCargoArtifacts;
9292
}
9393
// {
94-
cargoTestCommand = "RUST_BACKTRACE=1 cargo test";
94+
cargoTestCommand = "RUST_BACKTRACE=1 cargo test --profile release";
9595
}
9696
// args);
9797

@@ -108,8 +108,8 @@
108108
mithril-client-cli = buildPackage ./mithril-client-cli/Cargo.toml mithril.cargoArtifacts {
109109
pname = "mithril-client";
110110
};
111-
mithril-aggregator = buildPackage ./mithril-aggregator/Cargo.toml mithril.cargoArtifacts { cargoTestCommand = "cargo test --no-default-features"; };
112-
mithril-signer = buildPackage ./mithril-signer/Cargo.toml mithril.cargoArtifacts { cargoTestCommand = "cargo test --no-default-features"; };
111+
mithril-aggregator = buildPackage ./mithril-aggregator/Cargo.toml mithril.cargoArtifacts { cargoTestExtraArgs = "--no-default-features"; };
112+
mithril-signer = buildPackage ./mithril-signer/Cargo.toml mithril.cargoArtifacts { cargoTestExtraArgs = "--no-default-features"; };
113113
mithril-end-to-end = buildPackage ./mithril-test-lab/mithril-end-to-end/Cargo.toml null {};
114114
};
115115

0 commit comments

Comments
 (0)