2022-07-08 00:26:49 +00:00
|
|
|
name: "Building derivations"
|
2022-02-02 04:41:31 +00:00
|
|
|
on: [pull_request, push]
|
2022-08-17 15:43:58 +00:00
|
|
|
env:
|
|
|
|
NIXPKGS_ALLOW_INSECURE: "1"
|
|
|
|
NIXPKGS_ALLOW_BROKEN: "1"
|
2022-12-03 07:55:11 +00:00
|
|
|
NIXPKGS_ALLOW_UNFREE: "1"
|
2022-01-02 14:31:50 +00:00
|
|
|
jobs:
|
2022-07-10 09:30:22 +00:00
|
|
|
check-outputs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: cachix/install-nix-action@v16
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2022-08-17 15:43:58 +00:00
|
|
|
extra_nix_config: |
|
|
|
|
keep-going = true
|
2022-07-10 09:30:22 +00:00
|
|
|
- name: Check flake outputs
|
2022-08-17 15:43:58 +00:00
|
|
|
run: nix flake check --impure
|
2022-07-10 09:30:22 +00:00
|
|
|
|
2022-07-08 00:26:49 +00:00
|
|
|
build-custom-packages:
|
2022-01-02 14:31:50 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: cachix/install-nix-action@v16
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2022-08-28 16:01:21 +00:00
|
|
|
extra_nix_config: |
|
|
|
|
keep-going = true
|
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
|
2022-08-19 08:39:30 +00:00
|
|
|
run: nix build -f ./pkgs --impure
|
2022-07-08 00:26:49 +00:00
|
|
|
|
2022-09-21 06:07:41 +00:00
|
|
|
build-profiles:
|
2022-07-08 00:26:49 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: cachix/install-nix-action@v16
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2022-08-28 16:01:21 +00:00
|
|
|
extra_nix_config: |
|
|
|
|
keep-going = true
|
2022-09-24 05:07:28 +00:00
|
|
|
- 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 }}'
|
2022-09-21 06:07:41 +00:00
|
|
|
- name: Build Nix profiles
|
2022-07-08 00:26:49 +00:00
|
|
|
run: |
|
2022-09-21 06:07:41 +00:00
|
|
|
for nixosHost in ni graphical-installer bootstrap; do
|
|
|
|
nix build ".#nixosConfigurations.${nixosHost}.config.system.build.toplevel" --impure
|
|
|
|
done
|
|
|
|
|
|
|
|
for homeManagerConfig in foo-dogsquared; do
|
|
|
|
nix build ".#homeManagerConfigurations.${homeManagerConfig}.activationPackage" --impure
|
|
|
|
done
|