Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

feat: Update flake.lock #3

feat: Update flake.lock

feat: Update flake.lock #3

name: Nix Flake actions
on:
pull_request:
push:
branches:
- main
jobs:
nix-build:
strategy:
fail-fast: false # let it build all the targets
matrix:
include:
- derivation: darwinConfigurations.todds-macbook.system
os: macos-14
- derivation: nixosConfigurations.nas.config.system.build.toplevel
os: ubuntu-22.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
with:
extra_nix_config: |
auto-optimise-store = true
system-features = nixos-test benchmark big-parallel kvm
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v14
if: ${{ !github.event.pull_request.head.repo.fork }}
with:
name: doonga
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: |
nix build \
--print-build-logs \
--builders "" \
--max-jobs 2 \
--eval-store auto \
".#${{ matrix.derivation }}"
nix-build-success:
if: ${{ always() }}
needs:
- nix-build
name: Nix Build Successful
runs-on: ubuntu-latest
steps:
- if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
name: Check matrix status
run: exit 1