|
1 | | -{ lib, system, pkgs, craneLib, commonArgs, cargoArtifacts, abgenConsumersPkg |
2 | | -, wasmCheck }: |
| 1 | +{ lib, system, pkgs, craneLib, commonArgs, cargoArtifacts |
| 2 | +, cargoArtifactsCheckfast, abgenConsumersPkg, wasmCheck }: |
3 | 3 |
|
4 | 4 | let |
5 | 5 | src = commonArgs.src; |
6 | 6 | withArtifacts = commonArgs // { inherit cargoArtifacts; }; |
| 7 | + # Test checks compile under the checkfast profile (lto off, cgu 16): |
| 8 | + # 4.9x faster workspace test compiles, byte-identical verdicts. Clippy |
| 9 | + # and the shipped packages stay on release-profile artifacts. |
| 10 | + withCheckfast = commonArgs // { |
| 11 | + cargoArtifacts = cargoArtifactsCheckfast; |
| 12 | + CARGO_PROFILE = "checkfast"; |
| 13 | + }; |
7 | 14 | abgenRoot = ''export ABGEN_ROOT="$PWD"''; |
8 | 15 |
|
9 | 16 | archIndependent = { |
|
33 | 40 | # deps stage builds exactly this, then publishes the binary cache, so a |
34 | 41 | # failure in any later stage never costs the next run its warm deps. |
35 | 42 | deps = cargoArtifacts; |
| 43 | + deps-checkfast = cargoArtifactsCheckfast; |
36 | 44 |
|
37 | | - nextest = craneLib.cargoNextest (withArtifacts // { |
| 45 | + nextest = craneLib.cargoNextest (withCheckfast // { |
38 | 46 | doCheck = true; |
39 | 47 | __darwinAllowLocalNetworking = true; |
40 | 48 | cargoExtraArgs = "--locked"; |
|
66 | 74 | # is rejected: feature unification differs, a merged compile would not |
67 | 75 | # test the no-server config the mac/windows legs ship. |
68 | 76 | lambdaTests = { |
69 | | - lambda-tests = craneLib.cargoTest (withArtifacts // { |
| 77 | + lambda-tests = craneLib.cargoTest (withCheckfast // { |
70 | 78 | doCheck = true; |
71 | 79 | __darwinAllowLocalNetworking = true; |
72 | 80 | pname = "abgen-lambda-tests"; |
|
0 commit comments