mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-08 19:32:13 +01:00
add "nix build" to GitHub CI
run only when poetry/flake files change
This commit is contained in:
parent
1226d2e6d8
commit
c02e0618af
1 changed files with 28 additions and 0 deletions
28
.github/workflows/nix.yml
vendored
Normal file
28
.github/workflows/nix.yml
vendored
Normal 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
|
Loading…
Add table
Reference in a new issue