Skip to content

Commit a247076

Browse files
committed
Test against Rocq 9.1.0 in CI.
Signed-off-by: Rodolphe Lepigre <[email protected]>
1 parent 7bfd201 commit a247076

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,26 @@ jobs:
270270
# We disable the Dune cache when running the tests
271271
DUNE_CACHE: disabled
272272

273+
rocq:
274+
name: Rocq 9.1.0
275+
needs: nix-build
276+
runs-on: ubuntu-latest
277+
steps:
278+
- uses: actions/checkout@v5
279+
- uses: nixbuild/nix-quick-install-action@v34
280+
with:
281+
nix_conf: ${{ env.EXTRA_NIX_CONFIG }}
282+
- uses: nix-community/cache-nix-action@v6
283+
with:
284+
primary-key: |
285+
nix-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
286+
restore-prefixes-first-match: nix-${{ runner.os }}-${{ github.job }}-
287+
gc-max-store-size-linux: 5G
288+
- run: nix develop .#rocq -c make test-coq
289+
env:
290+
# We disable the Dune cache when running the tests
291+
DUNE_CACHE: disabled
292+
273293
wasm:
274294
name: Wasm_of_ocaml
275295
needs: nix-build

flake.nix

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@
5555
];
5656
});
5757
})
58+
(self: super: {
59+
coq_9_1_native = super.coq_9_1.overrideAttrs (a: {
60+
configureFlags = [
61+
"-native-compiler"
62+
"yes"
63+
];
64+
});
65+
})
5866
];
5967

6068
applyOxcamlPatches = import ./nix/ox-patches.nix {
@@ -353,6 +361,28 @@
353361
'';
354362
};
355363

364+
rocq = pkgs.mkShell {
365+
inherit INSIDE_NIX;
366+
nativeBuildInputs = (testNativeBuildInputs pkgs);
367+
# Coq requires OCaml 4.x
368+
inputsFrom = [
369+
pkgs.ocaml-ng.ocamlPackages_4_14.dune_3
370+
];
371+
buildInputs = with pkgs; [
372+
ocaml-ng.ocamlPackages_4_14.csexp
373+
ocaml-ng.ocamlPackages_4_14.pp
374+
ocaml-ng.ocamlPackages_4_14.re
375+
ocaml-ng.ocamlPackages_4_14.spawn
376+
ocaml-ng.ocamlPackages_4_14.uutf
377+
coq_9_1_native
378+
coq_9_1_native.ocamlPackages.findlib
379+
];
380+
meta.description = ''
381+
Provides a minimal shell environment built purely from nixpkgs
382+
that can build Dune and the Rocq testsuite.
383+
'';
384+
};
385+
356386
bootstrap-check = pkgs.mkShell {
357387
inherit INSIDE_NIX;
358388
buildInputs = with pkgs; [

0 commit comments

Comments
 (0)