Skip to content

Commit 70bb361

Browse files
authored
Merge pull request #135 from hhefesto/fix-flake-checks
nix flake check now actually builds everything
2 parents 6f380e8 + 8616e8b commit 70bb361

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/telomare-ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@ jobs:
2121
extraPullNames: nix-community
2222
- name: Build and test
2323
run: |
24-
# echo cachix use
25-
# cachix use iohk
2624
echo nix build and tests:
2725
nix -Lv flake check
2826
echo "Setting up cabal..."
2927
3028
nix -Lv develop -c cabal update
3129
3230
echo "Testing telomare-repl..."
33-
REPL_OUTPUT=$(nix -Lv develop -c cabal run telomare-repl -- --expr 'succ 7' 2>/dev/null | tail -n 1)
31+
REPL_OUTPUT=$(nix -Lv run .#telomare-repl -- --expr 'succ 7' 2>/dev/null | tail -n 1)
3432
echo "REPL output: $REPL_OUTPUT"
3533
if [[ "$REPL_OUTPUT" == "8" ]]; then
3634
echo "REPL test passed"

flake.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,23 @@
5151
};
5252
};
5353
};
54+
5455
packages.default = self'.packages.telomare;
56+
5557
apps.default = {
5658
type = "app";
5759
program = self.packages.${system}.telomare + "/bin/telomare";
5860
};
59-
6061
apps.repl = {
6162
type = "app";
6263
program = self.packages.${system}.telomare + "/bin/telomare-repl";
6364
};
64-
6565
apps.evaluare = {
6666
type = "app";
6767
program = self.packages.${system}.telomare + "/bin/telomare-evaluare";
6868
};
69+
70+
checks = self'.packages;
6971
};
7072
};
7173
}

0 commit comments

Comments
 (0)