ci: add nix-instantiate as first step

we don't have to build the whole closure for every system if we already
fail to instantiate it.
This commit is contained in:
hexchen 2020-11-29 03:56:58 +00:00
parent a9ffb27289
commit 260108a586

View file

@ -4,4 +4,5 @@ build:
stage: build
script:
- nix-channel --add https://github.com/hexchen/nixpkgs/archive/hexchen-20.09.tar.gz nixos && nix-channel --update && nix-env -i git
- nix-instantiate -I nixpkgs=https://github.com/hexchen/nixpkgs/archive/hexchen-20.09.tar.gz -A deploy.all
- nix-build -A deploy.all -I nixpkgs=https://github.com/hexchen/nixpkgs/archive/hexchen-20.09.tar.gz