nixos-config/.github/workflows/build.yml
2023-07-14 19:07:51 +08:00

27 lines
771 B
YAML

name: "Building derivations"
on: [pull_request, push]
env:
NIXPKGS_ALLOW_INSECURE: "1"
NIXPKGS_ALLOW_BROKEN: "1"
NIXPKGS_ALLOW_UNFREE: "1"
jobs:
build-custom-packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
keep-going = true
- run: |
sudo apt clean
- name: Prepare push to binary cache
uses: cachix/cachix-action@v12
if: ${{ github.ref == 'refs/heads/master' }}
with:
name: foo-dogsquared
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build custom packages
run: nix build -f ./pkgs --impure