Skip to content

Commit

Permalink
Update the flake.nix and the ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sonmarcho committed Dec 22, 2023
1 parent 6fd112a commit aa5e257
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- run: nix build -L .#aeneas
- run: nix build -L .#checks.x86_64-linux.aeneas-tests
- run: nix build -L .#checks.x86_64-linux.aeneas-verify-fstar
- run: nix build -L .#checks.x86_64-linux.aeneas-verify-fstar-split
- run: nix build -L .#checks.x86_64-linux.aeneas-verify-coq
- run: nix build -L .#checks.x86_64-linux.aeneas-verify-hol4
# Lean doesn't work with Nix
Expand Down
16 changes: 15 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@
# The tests don't generate anything - TODO: actually they do
installPhase = "touch $out";
};
# Replay the F* proofs for the cases where we split the fwd/back functions.
aeneas-verify-fstar-split = pkgs.stdenv.mkDerivation {
name = "aeneas_verify_fstar_split";
src = ./tests/fstar-split;
FSTAR_EXE = "${hacl-nix.packages.${system}.fstar}/bin/fstar.exe";
buildPhase= ''
make prepare-projects
make verify -j $NIX_BUILD_CORES
'';
# The tests don't generate anything - TODO: actually they do
installPhase = "touch $out";
};
# Replay the Coq proofs.
aeneas-verify-coq = pkgs.stdenv.mkDerivation {
name = "aeneas_verify_coq";
Expand Down Expand Up @@ -170,6 +182,8 @@
inherit aeneas;
default = aeneas;
};
checks = { inherit aeneas aeneas-tests aeneas-verify-fstar aeneas-verify-coq aeneas-verify-lean aeneas-verify-hol4; };
checks = {
inherit aeneas aeneas-tests aeneas-verify-fstar aeneas-verify-fstar-split
aeneas-verify-coq aeneas-verify-lean aeneas-verify-hol4; };
});
}

0 comments on commit aa5e257

Please sign in to comment.