build: combine CI jobs
Build all device configurations in same job to save on pipeline minutes
This commit is contained in:
parent
285870698a
commit
63bc92a5c9
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue