build(ci): add check job & improve build
This commit is contained in:
parent
5f8e62f8bf
commit
659aef0729
1 changed files with 17 additions and 5 deletions
|
@ -3,14 +3,26 @@ image: nixos/nix:2.9.1
|
||||||
variables:
|
variables:
|
||||||
NIX_CONFIG: "experimental-features = nix-command flakes"
|
NIX_CONFIG: "experimental-features = nix-command flakes"
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- nix-env -iA cachix -f https://cachix.org/api/v1/install
|
||||||
|
- cachix use felschr
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- build
|
||||||
|
|
||||||
|
check:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- cachix watch-exec felschr nix flake check
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
allow_failure: true
|
|
||||||
before_script:
|
|
||||||
- nix-env -iA cachix -f https://cachix.org/api/v1/install
|
|
||||||
- cachix use felschr
|
|
||||||
script:
|
script:
|
||||||
- cachix watch-exec felschr nix build .#nixosConfigurations.home-pc.config.system.build.toplevel
|
- cachix watch-exec felschr nix build .#deconz
|
||||||
- cachix watch-exec felschr nix build .#nixosConfigurations.home-server.config.system.build.toplevel
|
- cachix watch-exec felschr nix build .#nixosConfigurations.home-server.config.system.build.toplevel
|
||||||
|
# disabled because GitLab.com runner runs out of space
|
||||||
|
# - cachix watch-exec felschr nix build .#nixosConfigurations.home-pc.config.system.build.toplevel
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
allow_failure: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue