2022-02-02 04:41:31 +00:00
|
|
|
name: "Build packages"
|
|
|
|
on: [pull_request, push]
|
2022-01-02 14:31:50 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: cachix/install-nix-action@v16
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2022-02-02 04:41:31 +00:00
|
|
|
- name: Prepare push to binary cache
|
|
|
|
uses: cachix/cachix-action@v10
|
|
|
|
if: ${{ github.ref == 'refs/heads/master' }}
|
2022-01-02 14:31:50 +00:00
|
|
|
with:
|
|
|
|
name: foo-dogsquared
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
- name: Build custom packages
|
|
|
|
run: nix shell nixpkgs#nix-build-uncached --command nix-build-uncached ./pkgs
|
2022-05-20 06:47:34 +00:00
|
|
|
- name: Build NixOS configurations
|
2022-05-21 01:51:51 +00:00
|
|
|
run: nix build .#nixosConfigurations.ni.config.system.build.toplevel
|