Skip to content

Commit

Permalink
flake: group the main checks into a single derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Nov 29, 2024
1 parent 0b3b38a commit 7837bd0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,14 @@ jobs:
- run: nix build -L .#checks.x86_64-linux.aeneas-check-tidiness
- run: nix build -L .#checks.x86_64-linux.check-charon-pin
- 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-coq
- run: nix build -L .#checks.x86_64-linux.aeneas-verify-hol4
# Lean cannot run its tests in the sandbox because `elan` will download things
#- run: nix build -L .#checks.x86_64-linux.aeneas-verify-lean
- run: nix build -L .#checks.x86_64-linux.default

lean:
runs-on: [self-hosted, linux, nix]
needs: check_if_skip_duplicate_job
if: needs.check_if_skip_duplicate_job.outputs.should_skip != 'true'
steps:
# Lean cannot run its tests in the sandbox because `elan` will download things
- uses: actions/checkout@v4
- run: nix develop --command bash -c "cd tests/lean && make"

Expand Down
16 changes: 10 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@
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 @@ -241,12 +249,8 @@
];
};
checks = {
inherit aeneas aeneas-tests
aeneas-verify-fstar
aeneas-verify-coq
aeneas-verify-hol4
aeneas-check-tidiness
check-charon-pin;
default = aeneas-checks;
inherit aeneas-check-tidiness check-charon-pin;
};
});
}

0 comments on commit 7837bd0

Please sign in to comment.