30 lines
858 B
YAML
30 lines
858 B
YAML
name: Nix
|
|
on:
|
|
push:
|
|
pull_request:
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
target-system:
|
|
- ymir
|
|
- tartarus
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: cachix/install-nix-action@v16
|
|
# TODO: add a binary cache
|
|
# - uses: cachix/cachix-action@v10
|
|
# with:
|
|
# name: YOURCACHE
|
|
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
- run: nix flake check --accept-flake-config
|
|
# Pre-build the system configuration
|
|
- run: nix build --accept-flake-config --dry-run .#nixosConfigurations.${{ matrix.target-system }}.config.system.build.toplevel
|
|
check-formatting:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: cachix/install-nix-action@v16
|
|
- run: nix shell nixpkgs#alejandra -c alejandra -c .
|
|
|