ci: build nixos configurations
This commit is contained in:
parent
a83c9a4644
commit
c712d25398
31
.github/workflows/cachix.yaml
vendored
31
.github/workflows/cachix.yaml
vendored
|
@ -1,13 +1,16 @@
|
||||||
name: "Build packages for cachix"
|
name: "Populate Cachix binary cache"
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
|
- '**.nix'
|
||||||
|
- '**.age'
|
||||||
- 'pkgs/**'
|
- 'pkgs/**'
|
||||||
- 'flake.nix'
|
- 'flake.nix'
|
||||||
- 'flake.lock'
|
- 'flake.lock'
|
||||||
- '.github/workflows/*'
|
- '.github/workflows/*'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-pkgs:
|
||||||
|
name: Build custom Nix packages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -33,3 +36,27 @@ jobs:
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: nix build --verbose -L .#"${{ matrix.name }}"
|
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
|
||||||
|
|
Loading…
Reference in a new issue