build: combine CI jobs

Build all device configurations in same job to save on pipeline minutes
This commit is contained in:
Felix Schröter 2022-06-28 02:47:15 +02:00
parent 285870698a
commit 63bc92a5c9
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -6,12 +6,11 @@ variables:
build:
stage: build
allow_failure: true
parallel:
matrix:
- DEVICE: [home-pc, home-server]
script:
before_script:
- nix-env -iA cachix -f https://cachix.org/api/v1/install
- cachix use felschr
- cachix watch-exec felschr nix build .#nixosConfigurations.$DEVICE.config.system.build.toplevel
script:
- cachix watch-exec felschr nix build .#nixosConfigurations.home-pc.config.system.build.toplevel
- cachix watch-exec felschr nix build .#nixosConfigurations.home-server.config.system.build.toplevel
only:
- main