nix: cache complement outputs using nix-build-and-cache
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
86ec20e787
commit
1f8a7a707c
|
@ -20,12 +20,9 @@ OCI_IMAGE="complement-conduit:dev"
|
||||||
toplevel="$(git rev-parse --show-toplevel)"
|
toplevel="$(git rev-parse --show-toplevel)"
|
||||||
|
|
||||||
pushd "$toplevel" > /dev/null
|
pushd "$toplevel" > /dev/null
|
||||||
# uses nix-output-monitor (nom) if available
|
|
||||||
if command -v nom &> /dev/null; then
|
bin/nix-build-and-cache just .#complement
|
||||||
nom build .#complement
|
|
||||||
else
|
|
||||||
nix build -L .#complement
|
|
||||||
fi
|
|
||||||
docker load < result
|
docker load < result
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue