add "nix build" to GitHub CI

run only when poetry/flake files change
This commit is contained in:
Pavol Rusnak 2023-10-10 18:12:59 +02:00
parent 1226d2e6d8
commit c02e0618af

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

@ -0,0 +1,28 @@
name: LNbits CI / nix
on:
push:
branches:
- main
- dev
paths:
- 'flake.nix'
- 'flake.lock'
- 'pyproject.toml'
- 'poetry.lock'
pull_request:
paths:
- 'flake.nix'
- 'flake.lock'
- 'pyproject.toml'
- 'poetry.lock'
jobs:
nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix build