From c712d2539831a8e7903a68f30488726202b798ec Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 18 Jan 2022 11:56:32 +0100 Subject: [PATCH] ci: build nixos configurations --- .github/workflows/cachix.yaml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cachix.yaml b/.github/workflows/cachix.yaml index e4c48ae..accf269 100644 --- a/.github/workflows/cachix.yaml +++ b/.github/workflows/cachix.yaml @@ -1,13 +1,16 @@ -name: "Build packages for cachix" +name: "Populate Cachix binary cache" on: push: paths: + - '**.nix' + - '**.age' - 'pkgs/**' - 'flake.nix' - 'flake.lock' - '.github/workflows/*' jobs: - build: + build-pkgs: + name: Build custom Nix packages runs-on: ubuntu-latest strategy: @@ -33,3 +36,27 @@ jobs: - name: Build package run: nix build --verbose -L .#"${{ matrix.name }}" + + build-configs: + name: Build NixOS configurations + runs-on: ubuntu-latest + needs: [ build-pkgs ] + + strategy: + matrix: + name: + - zephyrus + + steps: + - uses: actions/checkout@v2 + + - uses: cachix/install-nix-action@v16 + + - uses: cachix/cachix-action@v10 + with: + name: alarsyo + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + extraPullNames: "nix-community" + + - name: Build package + run: nix build --verbose -L .#nixosConfigurations."${{ matrix.name }}".config.system.build.toplevel