add workflow
This commit is contained in:
parent
2d21be4c82
commit
ab0211cb07
1 changed files with 31 additions and 0 deletions
31
.github/workflows/nix.yml
vendored
Normal file
31
.github/workflows/nix.yml
vendored
Normal 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 .
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue