File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 {
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 ; [
You can’t perform that action at this time.
0 commit comments