add builder workflow

This commit is contained in:
Osman Faruk Bayram 2024-12-07 16:09:03 +03:00
parent 4f0cdda387
commit 2a6d62052c

28
.github/workflows/nix.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Nix
on:
push:
branches:
- master
pull_request:
jobs:
build:
strategy:
matrix:
os:
- ubuntu-20.04
target-system:
- ymir
- tartarus
runs-on: ${{ matrix.os }}
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
# Pre-build the system configuration
- run: nix build .#nixosConfigurations.${{ matrix.target-system }}.config.system.build.toplevel