add workflow

This commit is contained in:
Osman Faruk Bayram 2024-12-21 13:14:52 +03:00
parent 2d21be4c82
commit ab0211cb07

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

@ -0,0 +1,31 @@
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 .
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 .