Skip to content

Commit 391304b

Browse files
committed
Add nix build CI workflow
1 parent a1c4c31 commit 391304b

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/nix.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: nix build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: cachix/install-nix-action@v18
13+
with:
14+
extra_nix_config: |
15+
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
16+
- run: nix build
17+
- run: nix flake check

flake.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
default = tabletbot;
2222
};
2323

24-
devShell.${system} = import ./shell.nix { inherit pkgs; };
25-
24+
devShells.${system}.default = import ./shell.nix { inherit pkgs; };
2625
};
2726
}

0 commit comments

Comments
 (0)