From 63bc92a5c9c501cd9b7aa622516701f4bef6e709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Tue, 28 Jun 2022 02:47:15 +0200 Subject: [PATCH] build: combine CI jobs Build all device configurations in same job to save on pipeline minutes --- .gitlab-ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b9d6f78..73fc9fa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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