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

64 lines
1.3 KiB
YAML
Raw Normal View History

2022-01-18 11:56:32 +01:00
name: "Populate Cachix binary cache"
on:
push:
paths:
2022-01-18 11:56:32 +01:00
- '**.nix'
- '**.age'
- 'pkgs/**'
- 'flake.nix'
- 'flake.lock'
2021-11-02 16:24:26 +01:00
- '.github/workflows/*'
jobs:
2022-01-18 11:56:32 +01:00
build-pkgs:
name: Nix packages
runs-on: ubuntu-latest
2022-01-11 11:56:30 +01:00
strategy:
matrix:
name:
- emacsPgtkGcc
- 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
run: nix build --verbose -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:
matrix:
name:
- boreal
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
run: nix build --verbose -L .#nixosConfigurations."${{ matrix.name }}".config.system.build.toplevel