CI with and without harmonia

This commit is contained in:
John Ericson 2026-01-24 21:01:38 -05:00
parent 714dcd95c0
commit ad412bdd8c

19
nci.nix
View file

@ -49,5 +49,24 @@
};
};
};
nci.crates.nix-bindings-store =
let
addHarmoniaProfile = ''
cat >> Cargo.toml <<'EOF'
[profile.harmonia]
inherits = "release"
EOF
'';
in
{
profiles.harmonia = {
features = [ "harmonia" ];
runTests = true;
# Add harmonia profile to Cargo.toml for both deps and main builds
depsDrvConfig.mkDerivation.postPatch = addHarmoniaProfile;
drvConfig.mkDerivation.postPatch = addHarmoniaProfile;
};
};
};
}