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: build:
stage: build stage: build
allow_failure: true allow_failure: true
parallel: before_script:
matrix:
- DEVICE: [home-pc, home-server]
script:
- nix-env -iA cachix -f https://cachix.org/api/v1/install - nix-env -iA cachix -f https://cachix.org/api/v1/install
- cachix use felschr - 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: only:
- main - main