Skip to content

Commit 1580efe

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

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,23 @@ 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-flake-check:
133+
name: Check nix flake
134+
runs-on: ubuntu-latest
135+
steps:
136+
- uses: actions/checkout@v5
137+
- uses: cachix/install-nix-action@v31
138+
with:
139+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
140+
- run: nix flake check
141+
142+
nix-build:
143+
name: Build nix package
144+
runs-on: ubuntu-latest
145+
steps:
146+
- uses: actions/checkout@v5
147+
- uses: cachix/install-nix-action@v31
148+
with:
149+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
150+
- run: nix build

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)