Skip to content

Commit

Permalink
CI: add a coq-master job
Browse files Browse the repository at this point in the history
This job compiles the Coq sources of the Jasmin compiler with the
current master branch of Coq.
  • Loading branch information
vbgl authored and eponier committed Jun 11, 2024
1 parent 1c55b22 commit 7a3d671
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ coq-proof:
script:
- nix-shell --arg inCI true $EXTRA_NIX_ARGUMENTS --run 'make -j$NIX_BUILD_CORES -C proofs'

coq-master:
stage: prove
variables:
EXTRA_NIX_ARGUMENTS: --arg coqDeps true --arg coqMaster true
extends: .common
script:
- nix-shell --arg inCI true $EXTRA_NIX_ARGUMENTS --run 'make -j$NIX_BUILD_CORES -C proofs'

ocaml:
stage: build
variables:
Expand Down
9 changes: 8 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, inCI ? false
, pinned-nixpkgs ? inCI
, coqDeps ? !inCI
, coqMaster ? false
, ocamlDeps ? !inCI
, testDeps ? !inCI
, devTools ? !inCI
Expand All @@ -14,7 +15,13 @@ with pkgs;

let inherit (lib) optionals; in

let coqPackages = coqPackages_8_18; in
let coqPackages =
if coqMaster then
pkgs.coqPackages.overrideScope (self: super: {
coq = super.coq.override { version = "master"; };
})
else coqPackages_8_18
; in

let mathcomp-word = callPackage scripts/mathcomp-word.nix { inherit coqPackages; }; in

Expand Down

0 comments on commit 7a3d671

Please sign in to comment.