Skip to content

Commit

Permalink
Merge pull request #385 from Nadrieril/ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril authored Dec 3, 2024
2 parents b19bb38 + 9c12f29 commit 7fe487e
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
flake-utils.follows = "charon/flake-utils";
nixpkgs.follows = "charon/nixpkgs";
fstar.url = "github:FStarLang/fstar";
flake-compat.url = "github:nix-community/flake-compat";
};

# Remark: keep the list of outputs in sync with the list of inputs above
Expand Down Expand Up @@ -179,15 +178,15 @@
# reuse the build of ./backends/hol4.
aeneas-verify-hol4 = pkgs.stdenv.mkDerivation {
name = "aeneas_verify_hol4";
# Remark: we tried to filter the sources to only include ./backends/hol4
# and ./tests/hol4 (see comment below), but it didn't work
src = ./.;
# src = pkgs.lib.cleanSourceWith {
# src = ./.;
# filter = path: type:
# pkgs.lib.hasPrefix (toString ./backends/hol4) path
# || pkgs.lib.hasPrefix (toString ./tests/hol4) path;
# };
src = pkgs.lib.cleanSourceWith {
src = ./.;
filter = path: type:
# If we exclude these, the filter won't recurse into them.
path == toString ./backends || path == toString ./tests
|| pkgs.lib.hasPrefix (toString ./backends/hol4) path
|| pkgs.lib.hasPrefix (toString ./tests/hol4) path
;
};
buildInputs = [ pkgs.hol ];
buildPhase = ''
cd ./tests/hol4
Expand All @@ -198,14 +197,6 @@
installPhase = "touch $out";
};

aeneas-checks = pkgs.runCommand "aeneas-checks" { } ''
echo ${aeneas-tests}
echo ${aeneas-verify-coq}
echo ${aeneas-verify-fstar}
echo ${aeneas-verify-hol4}
touch $out
'';

check-charon-pin = pkgs.runCommand "aeneas-check-charon-pin"
{
buildInputs = [ pkgs.jq ];
Expand Down Expand Up @@ -248,8 +239,20 @@
];
};
checks = {
default = aeneas-checks;
inherit aeneas-check-tidiness check-charon-pin;
default = pkgs.runCommand "aeneas-checks" { } ''
echo ${aeneas-tests}
echo ${aeneas-verify-coq}
echo ${aeneas-verify-fstar}
echo ${aeneas-verify-hol4}
touch $out
'';
inherit
aeneas-tests
aeneas-verify-coq
aeneas-verify-fstar
aeneas-verify-hol4
aeneas-check-tidiness
check-charon-pin;
};
});
}

0 comments on commit 7fe487e

Please sign in to comment.