Skip to content

Commit c3b3bef

Browse files
committed
run a build inside a nix shell and add a nix ci trigger
1 parent e213400 commit c3b3bef

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/nix-ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
- 'agda2hs.cabal'
1313
- 'cabal.project'
1414
- 'Makefile'
15+
- 'flake.*'
16+
- 'nix/*'
1517
- '.github/workflows/**.yml'
1618
branches: [master]
1719

@@ -32,4 +34,13 @@ jobs:
3234
- uses: actions/checkout@v3
3335
- uses: cachix/install-nix-action@v22
3436
- uses: DeterminateSystems/magic-nix-cache-action@v2
35-
- run: nix build .#${{ matrix.derivation }} --print-build-logs
37+
- run: nix build .#${{ matrix.derivation }} --print-build-logs
38+
39+
nix-shell:
40+
name: "Test building inside a nix shell"
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v3
44+
- uses: cachix/install-nix-action@v22
45+
- uses: DeterminateSystems/magic-nix-cache-action@v2
46+
- run: nix develop -Lv -c bash -c "cabal build"

0 commit comments

Comments
 (0)