Skip to content

Commit 72485bc

Browse files
committed
Add CI step for nix build and flake check
1 parent e7c430c commit 72485bc

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,15 @@ jobs:
128128
tags: |
129129
ghcr.io/dbrgn/xc-bot:${{ steps.version.outputs.branch }}
130130
ghcr.io/dbrgn/xc-bot:${{ steps.version.outputs.version }}
131+
132+
nix-build:
133+
name: Build nix package
134+
runs-on: ubuntu-latest
135+
steps:
136+
- uses: actions/checkout@v5
137+
- uses: cachix/install-nix-action@v31
138+
with:
139+
nix_path: nixpkgs=channel:nixos-25.05
140+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
141+
- run: nix-build
142+
- run: nix flake check

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ You'll probably want to mount both files into the container.
5555
Note: This container runs as default user by default. If you use podman, you
5656
can run the container as non-root.
5757

58+
## Nix MOdule
59+
60+
This repository also includes a Nix package and NixOS module.
61+
5862
## License
5963

6064
Licensed under the AGPL version 3 or later. See `LICENSE.md` file.

0 commit comments

Comments
 (0)