nixos-config/.github/workflows/cachix.yaml

96 lines
2 KiB
YAML
Raw Normal View History

name: "Cachix"
on:
push:
paths:
2022-01-18 11:56:32 +01:00
- '**.nix'
- '**.age'
- 'pkgs/**'
- 'flake.nix'
- 'flake.lock'
- '.github/workflows/cachix.yaml'
jobs:
2022-04-10 11:57:03 +02:00
format-check:
name: Format check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v16
- name: Run alejandra
run: nix run nixpkgs#alejandra -- --check .
flake-check:
name: Flake check
runs-on: ubuntu-latest
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 flake check
2022-01-18 11:56:32 +01:00
build-pkgs:
name: Nix packages
runs-on: ubuntu-latest
2022-04-10 11:57:03 +02:00
needs: [ flake-check, format-check ]
2022-01-11 11:56:30 +01:00
strategy:
2022-03-24 17:22:02 +01:00
fail-fast: false
2022-01-11 11:56:30 +01:00
matrix:
name:
- grafanaDashboards/nginx
- grafanaDashboards/node-exporter
- kaleidoscope-udev-rules
- sddm-sugar-candy
- spot
steps:
- uses: actions/checkout@v2
2022-01-11 11:56:30 +01:00
2021-12-27 15:51:54 +01:00
- uses: cachix/install-nix-action@v16
2022-01-11 11:56:30 +01:00
- uses: cachix/cachix-action@v10
with:
name: alarsyo
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
2022-01-11 13:47:36 +01:00
extraPullNames: "nix-community"
2022-01-11 11:56:30 +01:00
- name: Build package
2022-02-07 16:06:11 +01:00
run: nix build -L .#"${{ matrix.name }}"
2022-01-18 11:56:32 +01:00
build-configs:
name: NixOS configs
2022-01-18 11:56:32 +01:00
runs-on: ubuntu-latest
needs: [ build-pkgs ]
strategy:
2022-03-24 17:22:02 +01:00
fail-fast: false
2022-01-18 11:56:32 +01:00
matrix:
name:
- boreal
2022-06-10 18:01:58 +02:00
- hades
2022-03-11 19:02:42 +01:00
- poseidon
2022-01-18 11:56:32 +01:00
- 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
2022-02-07 16:06:11 +01:00
run: nix build -L .#nixosConfigurations."${{ matrix.name }}".config.system.build.toplevel