CI with and without harmonia
This commit is contained in:
parent
714dcd95c0
commit
ad412bdd8c
1 changed files with 19 additions and 0 deletions
19
nci.nix
19
nci.nix
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue