Skip to content

Commit 3ee6458

Browse files
wd15cadkin
authored andcommitted
add github action for nix build
1 parent 37fe979 commit 3ee6458

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/nix.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Nix
3+
on: [push, pull_request]
4+
jobs:
5+
test:
6+
strategy:
7+
matrix:
8+
os: [ubuntu-latest, macos-latest]
9+
runs-on: ${{ matrix.os }}
10+
defaults:
11+
run:
12+
working-directory: ./
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: cachix/install-nix-action@v27
16+
with:
17+
nix_path: nixpkgs=channel:nixos-unstable
18+
extra_nix_config: |
19+
trusted-public-keys = mdfbaam.cachix.org-1:WCQinXaMJP7Ny4sMlKdisNUyhcO2MHnPoobUef5aTmQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
20+
substituters = https://mdfbaam.cachix.org https://cache.nixos.org
21+
- run: nix flake check
22+
- run: nix build
23+

0 commit comments

Comments
 (0)