Skip to content

chore(deps): lock file maintenance #483

chore(deps): lock file maintenance

chore(deps): lock file maintenance #483

Workflow file for this run

name: "Build"
on:
workflow_dispatch:
push:
paths:
- "**.nix"
- "flake.lock"
- ".github/workflows/ci.yaml"
jobs:
build-config:
strategy:
matrix:
include:
- hostName: Desktop
nixosCfgKey: desktop
homeCfgKey: desktop
os-label: ubuntu-latest
- hostName: WSL2
nixosCfgKey: wsl2
homeCfgKey: wsl2
os-label: ubuntu-latest
- hostName: Thinkpad
nixosCfgKey: thinkpad
homeCfgKey: thinkpad
os-label: ubuntu-latest
- hostName: Homeserver
nixosCfgKey: homeserver
homeCfgKey: homeserver
os-label: ubuntu-latest
- hostName: Relsat
nixosCfgKey: relsat
homeCfgKey: relsat
os-label: ubuntu-latest
fail-fast: false
name: Build ${{ matrix.hostName }}
runs-on: ${{ matrix.os-label }}
steps:
- name: Free diskspace
if: false
uses: easimon/maximize-build-space@master
with:
build-mount-path: /nix
root-reserve-mb: 5120
remove-dotnet: true
remove-android: true
remove-haskell: true
- uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
extra_nix_config: "experimental-features = nix-command flakes pipe-operators"
- uses: cachix/cachix-action@v15
with:
name: tarow
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Restore and cache Nix store
uses: nix-community/cache-nix-action@v7
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
gc-max-store-size-linux: 1073741824
purge: false
- name: Build NixOS Configuration
if: ${{ contains(toJSON(matrix), 'nixosCfgKey') && matrix.nixosCfgKey != '' }}
run: nix build .#nixosConfigurations.${{ matrix.nixosCfgKey }}.config.system.build.toplevel
- name: Build Home-Manager Cofiguration
#if: ${{ contains(toJSON(matrix), 'homeCfgKey') && matrix.homeCfgKey != '' }}
if: false
run: nix build .#homeConfigurations.${{ matrix.homeCfgKey }}.activationPackage
check_flake:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
extra_nix_config: "experimental-features = nix-command flakes pipe-operators"
- name: Check Flake
run: nix flake check --keep-going