Skip to content

Commit 4b75622

Browse files
liesnikovjespercockx
authored andcommitted
run a build inside a nix shell and add a nix ci trigger
1 parent 7181fe2 commit 4b75622

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Diff for: .github/workflows/nix-ci.yml

+12-1
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)