mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
7a992b6531
There's a lot of explicitly-marked broken packages for now so we'll just set it to continue on error especially if we extend the steps.
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
name: "Building derivations"
|
|
on: [pull_request, push]
|
|
env:
|
|
NIXPKGS_ALLOW_INSECURE: "1"
|
|
NIXPKGS_ALLOW_BROKEN: "1"
|
|
jobs:
|
|
check-outputs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: cachix/install-nix-action@v16
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: |
|
|
keep-going = true
|
|
- name: Check flake outputs
|
|
run: nix flake check --impure
|
|
|
|
build-custom-packages:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: cachix/install-nix-action@v16
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: |
|
|
keep-going = true
|
|
- name: Prepare push to binary cache
|
|
uses: cachix/cachix-action@v10
|
|
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
|
|
continue-on-error: true
|
|
|
|
build-hosts:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: cachix/install-nix-action@v16
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: |
|
|
keep-going = true
|
|
- name: Build NixOS configurations
|
|
run: |
|
|
nix build .#nixosConfigurations.ni.config.system.build.toplevel --impure
|
|
continue-on-error: true
|