From 621b8fff5dcd8ad481fd151c8e0fea6e7438d070 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Tue, 16 Apr 2024 11:41:21 +0200 Subject: Run sanity checks in CI only --- flake.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index b638d4ee..29960c9c 100644 --- a/flake.nix +++ b/flake.nix @@ -81,8 +81,9 @@ # the files which are checked out (we have to be careful about # files like lakefile.lean, and the user hand-written files) - # Run the tests - remark: we could remove the file - make test-all -j $NIX_BUILD_CORES + # Run the tests with extra sanity checks enabled + # Remark: we could remove the file + OPTIONS=-checks make test-all -j $NIX_BUILD_CORES # Check that there are no differences between the generated tests # and the original tests @@ -153,10 +154,6 @@ default = aeneas; }; devShells.default = pkgs.mkShell { - # By default, tests run some sanity checks which are pretty slow. - # This disables these checks when developping locally. - OPTIONS = ""; - packages = [ pkgs.ocamlPackages.ocaml pkgs.ocamlPackages.ocamlformat -- cgit v1.3.1 From 75efc0213100f405fa64f3362e2fc4a73d09f61e Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Wed, 17 Apr 2024 14:25:55 +0200 Subject: feat(nix): support non-Flakes users Not all Nix users can make use of Flakes. This adds the compatibility for non-Flakes users. Signed-off-by: Ryan Lahfa --- default.nix | 16 ++++++++++++++++ flake.lock | 16 ++++++++++++++++ flake.nix | 3 ++- shell.nix | 16 ++++++++++++++++ 4 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 default.nix create mode 100644 shell.nix (limited to 'flake.nix') diff --git a/default.nix b/default.nix new file mode 100644 index 00000000..d7da8cd1 --- /dev/null +++ b/default.nix @@ -0,0 +1,16 @@ +# This file provides backward compatibility to nix < 2.4 clients +{ system ? builtins.currentSystem }: +let + lock = builtins.fromJSON (builtins.readFile ./flake.lock); + + inherit (lock.nodes.flake-compat.locked) owner repo rev narHash; + + flake-compat = fetchTarball { + url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; + sha256 = narHash; + }; + + flake = import flake-compat { inherit system; src = ./.; }; +in +flake.defaultNix + diff --git a/flake.lock b/flake.lock index 1eaf1375..57089a32 100644 --- a/flake.lock +++ b/flake.lock @@ -42,6 +42,21 @@ "type": "github" } }, + "flake-compat": { + "locked": { + "lastModified": 1688025799, + "narHash": "sha256-ktpB4dRtnksm9F5WawoIkEneh1nrEvuxb5lJFt1iOyw=", + "owner": "nix-community", + "repo": "flake-compat", + "rev": "8bf105319d44f6b9f0d764efa4fdef9f1cc9ba1c", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "flake-compat", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": "systems" @@ -221,6 +236,7 @@ "root": { "inputs": { "charon": "charon", + "flake-compat": "flake-compat", "flake-utils": [ "charon", "flake-utils" diff --git a/flake.nix b/flake.nix index b638d4ee..5d5fae40 100644 --- a/flake.nix +++ b/flake.nix @@ -8,11 +8,12 @@ flake-utils.follows = "charon/flake-utils"; nixpkgs.follows = "charon/nixpkgs"; hacl-nix.url = "github:hacl-star/hacl-nix"; + flake-compat.url = "github:nix-community/flake-compat"; }; # Remark: keep the list of outputs in sync with the list of inputs above # (see above remark) - outputs = { self, charon, flake-utils, nixpkgs, hacl-nix }: + outputs = { self, charon, flake-utils, nixpkgs, hacl-nix, flake-compat }: flake-utils.lib.eachSystem [ "x86_64-linux" ] (system: let pkgs = import nixpkgs { inherit system; }; diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..4e0d706e --- /dev/null +++ b/shell.nix @@ -0,0 +1,16 @@ +# This file provides backward compatibility to nix < 2.4 clients +{ system ? builtins.currentSystem }: +let + lock = builtins.fromJSON (builtins.readFile ./flake.lock); + + inherit (lock.nodes.flake-compat.locked) owner repo rev narHash; + + flake-compat = fetchTarball { + url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; + sha256 = narHash; + }; + + flake = import flake-compat { inherit system; src = ./.; }; +in +flake.shellNix + -- cgit v1.3.1 From cfda3a990cb3b24d91ce5bf8d1ddec7b265beca5 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Tue, 16 Apr 2024 13:30:03 +0200 Subject: Ensure we regenerate files properly in CI Files that weren't regenerated were marked as not automatically-generated. --- Makefile | 7 ++++++- flake.nix | 9 +++------ tests/coq/betree/BetreeMain_FunsExternal.v | 1 - tests/coq/betree/BetreeMain_TypesExternal.v | 1 - tests/coq/hashmap_on_disk/HashmapMain_FunsExternal.v | 1 - tests/coq/hashmap_on_disk/HashmapMain_TypesExternal.v | 1 - tests/coq/misc/External_FunsExternal.v | 1 - tests/coq/misc/External_TypesExternal.v | 1 - tests/hol4/betree/betreeMain_FunsScript.sml | 1 - tests/hol4/betree/betreeMain_OpaqueScript.sml | 1 - tests/hol4/betree/betreeMain_TypesScript.sml | 1 - tests/hol4/hashmap/hashmap_FunsScript.sml | 1 - tests/hol4/hashmap/hashmap_TypesScript.sml | 1 - tests/hol4/hashmap_on_disk/hashmapMain_FunsScript.sml | 1 - tests/hol4/hashmap_on_disk/hashmapMain_OpaqueScript.sml | 1 - tests/hol4/hashmap_on_disk/hashmapMain_TypesScript.sml | 1 - tests/hol4/misc-constants/constantsScript.sml | 1 - tests/hol4/misc-external/external_FunsScript.sml | 1 - tests/hol4/misc-external/external_OpaqueScript.sml | 1 - tests/hol4/misc-external/external_TypesScript.sml | 1 - tests/hol4/misc-loops/loops_FunsScript.sml | 1 - tests/hol4/misc-loops/loops_TypesScript.sml | 1 - tests/hol4/misc-no_nested_borrows/noNestedBorrowsScript.sml | 1 - tests/hol4/misc-paper/paperScript.sml | 1 - tests/hol4/misc-polonius_list/poloniusListScript.sml | 1 - tests/lean/External/Opaque.lean | 1 - tests/lean/HashmapMain/Opaque.lean | 1 - 27 files changed, 9 insertions(+), 32 deletions(-) (limited to 'flake.nix') diff --git a/Makefile b/Makefile index 0299d134..dbc78f9f 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ doc: cd compiler && dune build @doc .PHONY: clean -clean: +clean: clean-generated cd compiler && dune clean # Test the project by translating test files to F* @@ -99,6 +99,11 @@ test-all: test-no_nested_borrows test-paper \ test-loops \ test-arrays test-traits test-bitwise test-demo +.PHONY: clean-generated +clean-generated: + # We can't put this line in `tests/Makefile` otherwise it will detect itself :D + grep -lR 'THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS' tests | xargs rm + # Verify the F* files generated by the translation .PHONY: verify verify: diff --git a/flake.nix b/flake.nix index a436d773..f6a5f04e 100644 --- a/flake.nix +++ b/flake.nix @@ -75,23 +75,20 @@ export AENEAS_EXE=./aeneas # Copy the tests - mkdir tests-copy cp -r tests tests-copy - # TODO: remove the test files to make sure we regenerate exactly - # the files which are checked out (we have to be careful about - # files like lakefile.lean, and the user hand-written files) - # Run the tests with extra sanity checks enabled # Remark: we could remove the file + make clean-generated OPTIONS=-checks make test-all -j $NIX_BUILD_CORES # Check that there are no differences between the generated tests # and the original tests - if [[ $(diff -rq tests tests-copy) ]]; then + if diff -rq tests tests-copy; then echo "Ok: the regenerated test files are the same as the checked out files" else echo "Error: the regenerated test files differ from the checked out files" + diff -ru tests tests-copy exit 1 fi ''; diff --git a/tests/coq/betree/BetreeMain_FunsExternal.v b/tests/coq/betree/BetreeMain_FunsExternal.v index 07dba263..2d77c4ed 100644 --- a/tests/coq/betree/BetreeMain_FunsExternal.v +++ b/tests/coq/betree/BetreeMain_FunsExternal.v @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [betree_main]: external functions. -- This is a template file: rename it to "FunsExternal.lean" and fill the holes. *) Require Import Primitives. diff --git a/tests/coq/betree/BetreeMain_TypesExternal.v b/tests/coq/betree/BetreeMain_TypesExternal.v index 50c4a4f8..870d2601 100644 --- a/tests/coq/betree/BetreeMain_TypesExternal.v +++ b/tests/coq/betree/BetreeMain_TypesExternal.v @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [betree_main]: external types. -- This is a template file: rename it to "TypesExternal.lean" and fill the holes. *) Require Import Primitives. diff --git a/tests/coq/hashmap_on_disk/HashmapMain_FunsExternal.v b/tests/coq/hashmap_on_disk/HashmapMain_FunsExternal.v index a03dc407..fb5f23cd 100644 --- a/tests/coq/hashmap_on_disk/HashmapMain_FunsExternal.v +++ b/tests/coq/hashmap_on_disk/HashmapMain_FunsExternal.v @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [hashmap_main]: external function declarations *) Require Import Primitives. Import Primitives. diff --git a/tests/coq/hashmap_on_disk/HashmapMain_TypesExternal.v b/tests/coq/hashmap_on_disk/HashmapMain_TypesExternal.v index 87568232..28651c14 100644 --- a/tests/coq/hashmap_on_disk/HashmapMain_TypesExternal.v +++ b/tests/coq/hashmap_on_disk/HashmapMain_TypesExternal.v @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [hashmap_main]: external types. -- This is a template file: rename it to "TypesExternal.lean" and fill the holes. *) Require Import Primitives. diff --git a/tests/coq/misc/External_FunsExternal.v b/tests/coq/misc/External_FunsExternal.v index 130b48a2..39f4a60e 100644 --- a/tests/coq/misc/External_FunsExternal.v +++ b/tests/coq/misc/External_FunsExternal.v @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [external]: external function declarations *) Require Import Primitives. Import Primitives. diff --git a/tests/coq/misc/External_TypesExternal.v b/tests/coq/misc/External_TypesExternal.v index 3f02b839..734c66e5 100644 --- a/tests/coq/misc/External_TypesExternal.v +++ b/tests/coq/misc/External_TypesExternal.v @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [external]: external types. -- This is a template file: rename it to "TypesExternal.lean" and fill the holes. *) Require Import Primitives. diff --git a/tests/hol4/betree/betreeMain_FunsScript.sml b/tests/hol4/betree/betreeMain_FunsScript.sml index bd16c16c..ae3c4de2 100644 --- a/tests/hol4/betree/betreeMain_FunsScript.sml +++ b/tests/hol4/betree/betreeMain_FunsScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [betree_main]: function definitions *) open primitivesLib divDefLib open betreeMain_TypesTheory betreeMain_OpaqueTheory diff --git a/tests/hol4/betree/betreeMain_OpaqueScript.sml b/tests/hol4/betree/betreeMain_OpaqueScript.sml index 1d16db4c..04a547e1 100644 --- a/tests/hol4/betree/betreeMain_OpaqueScript.sml +++ b/tests/hol4/betree/betreeMain_OpaqueScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [betree_main]: external function declarations *) open primitivesLib divDefLib open betreeMain_TypesTheory diff --git a/tests/hol4/betree/betreeMain_TypesScript.sml b/tests/hol4/betree/betreeMain_TypesScript.sml index 779f6abb..685df462 100644 --- a/tests/hol4/betree/betreeMain_TypesScript.sml +++ b/tests/hol4/betree/betreeMain_TypesScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [betree_main]: type definitions *) open primitivesLib divDefLib diff --git a/tests/hol4/hashmap/hashmap_FunsScript.sml b/tests/hol4/hashmap/hashmap_FunsScript.sml index 682c5760..6678de4b 100644 --- a/tests/hol4/hashmap/hashmap_FunsScript.sml +++ b/tests/hol4/hashmap/hashmap_FunsScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [hashmap]: function definitions *) open primitivesLib divDefLib open hashmap_TypesTheory diff --git a/tests/hol4/hashmap/hashmap_TypesScript.sml b/tests/hol4/hashmap/hashmap_TypesScript.sml index a0865956..6b91bdde 100644 --- a/tests/hol4/hashmap/hashmap_TypesScript.sml +++ b/tests/hol4/hashmap/hashmap_TypesScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [hashmap]: type definitions *) open primitivesLib divDefLib diff --git a/tests/hol4/hashmap_on_disk/hashmapMain_FunsScript.sml b/tests/hol4/hashmap_on_disk/hashmapMain_FunsScript.sml index c1e30aa6..153f7cd9 100644 --- a/tests/hol4/hashmap_on_disk/hashmapMain_FunsScript.sml +++ b/tests/hol4/hashmap_on_disk/hashmapMain_FunsScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [hashmap_main]: function definitions *) open primitivesLib divDefLib open hashmapMain_TypesTheory hashmapMain_OpaqueTheory diff --git a/tests/hol4/hashmap_on_disk/hashmapMain_OpaqueScript.sml b/tests/hol4/hashmap_on_disk/hashmapMain_OpaqueScript.sml index f7221d92..4e3c01c0 100644 --- a/tests/hol4/hashmap_on_disk/hashmapMain_OpaqueScript.sml +++ b/tests/hol4/hashmap_on_disk/hashmapMain_OpaqueScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [hashmap_main]: external function declarations *) open primitivesLib divDefLib open hashmapMain_TypesTheory diff --git a/tests/hol4/hashmap_on_disk/hashmapMain_TypesScript.sml b/tests/hol4/hashmap_on_disk/hashmapMain_TypesScript.sml index 3f8ca9b9..14ba1890 100644 --- a/tests/hol4/hashmap_on_disk/hashmapMain_TypesScript.sml +++ b/tests/hol4/hashmap_on_disk/hashmapMain_TypesScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [hashmap_main]: type definitions *) open primitivesLib divDefLib diff --git a/tests/hol4/misc-constants/constantsScript.sml b/tests/hol4/misc-constants/constantsScript.sml index 40a319c6..20228a38 100644 --- a/tests/hol4/misc-constants/constantsScript.sml +++ b/tests/hol4/misc-constants/constantsScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [constants] *) open primitivesLib divDefLib diff --git a/tests/hol4/misc-external/external_FunsScript.sml b/tests/hol4/misc-external/external_FunsScript.sml index f3692ee2..65433aff 100644 --- a/tests/hol4/misc-external/external_FunsScript.sml +++ b/tests/hol4/misc-external/external_FunsScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [external]: function definitions *) open primitivesLib divDefLib open external_TypesTheory external_OpaqueTheory diff --git a/tests/hol4/misc-external/external_OpaqueScript.sml b/tests/hol4/misc-external/external_OpaqueScript.sml index b5a6d91d..e5faf97c 100644 --- a/tests/hol4/misc-external/external_OpaqueScript.sml +++ b/tests/hol4/misc-external/external_OpaqueScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [external]: external function declarations *) open primitivesLib divDefLib open external_TypesTheory diff --git a/tests/hol4/misc-external/external_TypesScript.sml b/tests/hol4/misc-external/external_TypesScript.sml index d290c3f6..207eea8d 100644 --- a/tests/hol4/misc-external/external_TypesScript.sml +++ b/tests/hol4/misc-external/external_TypesScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [external]: type definitions *) open primitivesLib divDefLib diff --git a/tests/hol4/misc-loops/loops_FunsScript.sml b/tests/hol4/misc-loops/loops_FunsScript.sml index 65cf77d4..6bb079a9 100644 --- a/tests/hol4/misc-loops/loops_FunsScript.sml +++ b/tests/hol4/misc-loops/loops_FunsScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [loops]: function definitions *) open primitivesLib divDefLib open loops_TypesTheory diff --git a/tests/hol4/misc-loops/loops_TypesScript.sml b/tests/hol4/misc-loops/loops_TypesScript.sml index e3e5b8d1..aec26414 100644 --- a/tests/hol4/misc-loops/loops_TypesScript.sml +++ b/tests/hol4/misc-loops/loops_TypesScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [loops]: type definitions *) open primitivesLib divDefLib diff --git a/tests/hol4/misc-no_nested_borrows/noNestedBorrowsScript.sml b/tests/hol4/misc-no_nested_borrows/noNestedBorrowsScript.sml index 1b2d6121..85a9bd8b 100644 --- a/tests/hol4/misc-no_nested_borrows/noNestedBorrowsScript.sml +++ b/tests/hol4/misc-no_nested_borrows/noNestedBorrowsScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [no_nested_borrows] *) open primitivesLib divDefLib diff --git a/tests/hol4/misc-paper/paperScript.sml b/tests/hol4/misc-paper/paperScript.sml index 3ac5b6ca..71e9b6d1 100644 --- a/tests/hol4/misc-paper/paperScript.sml +++ b/tests/hol4/misc-paper/paperScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [paper] *) open primitivesLib divDefLib diff --git a/tests/hol4/misc-polonius_list/poloniusListScript.sml b/tests/hol4/misc-polonius_list/poloniusListScript.sml index 06876ed4..d5b6422c 100644 --- a/tests/hol4/misc-polonius_list/poloniusListScript.sml +++ b/tests/hol4/misc-polonius_list/poloniusListScript.sml @@ -1,4 +1,3 @@ -(** THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS *) (** [polonius_list] *) open primitivesLib divDefLib diff --git a/tests/lean/External/Opaque.lean b/tests/lean/External/Opaque.lean index d0297523..6cec334f 100644 --- a/tests/lean/External/Opaque.lean +++ b/tests/lean/External/Opaque.lean @@ -1,4 +1,3 @@ --- THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS -- [external]: opaque function definitions import Base import External.Types diff --git a/tests/lean/HashmapMain/Opaque.lean b/tests/lean/HashmapMain/Opaque.lean index abf04c94..a410b253 100644 --- a/tests/lean/HashmapMain/Opaque.lean +++ b/tests/lean/HashmapMain/Opaque.lean @@ -1,4 +1,3 @@ --- THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS -- [hashmap_main]: opaque function definitions import Base import HashmapMain.Types -- cgit v1.3.1 From 40e797fbf4d7bb47ef48597f25fda4e0b78633c7 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Mon, 22 Apr 2024 11:55:55 +0200 Subject: ci: check code formatting --- .github/workflows/ci.yml | 1 + Makefile | 3 ++- flake.nix | 20 +++++++++++++++++++- 3 files changed, 22 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b5aacf0..66fda7af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ jobs: steps: #- uses: cachix/install-nix-action@v22 - uses: actions/checkout@v4 + - run: nix build -L .#checks.x86_64-linux.aeneas-check-tidiness - 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 diff --git a/Makefile b/Makefile index 4ecc2a3e..08359d49 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,8 @@ verify: # Reformat the project .PHONY: format format: - cd compiler && dune build @fmt --auto-promote + @# `|| `true` because the command returns an error if it changed anything, which we don't care about. + cd compiler && dune fmt || true # The commands to run Charon to generate the .llbc files ifeq (, $(REGEN_LLBC)) diff --git a/flake.nix b/flake.nix index f6a5f04e..1ef810b7 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,23 @@ }; buildInputs = [ ocamlPackages.calendar ]; }; + + aeneas-check-tidiness = pkgs.stdenv.mkDerivation { + name = "aeneas-check-tidiness"; + src = ./compiler; + buildInputs = [ + ocamlPackages.dune_3 + ocamlPackages.ocaml + ocamlPackages.ocamlformat + ]; + buildPhase = '' + if ! dune build @fmt; then + echo 'ERROR: Code is not fmrmatted. Run `make format` to format the project files'. + exit 1 + fi + ''; + installPhase = "touch $out"; + }; aeneas = ocamlPackages.buildDunePackage { pname = "aeneas"; version = "0.1.0"; @@ -167,6 +184,7 @@ inherit aeneas aeneas-tests aeneas-verify-fstar aeneas-verify-coq - aeneas-verify-hol4; }; + aeneas-verify-hol4 + aeneas-check-tidiness; }; }); } -- cgit v1.3.1 From 468377f078c5d01ec909f1927b329dec13dd46fd Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Mon, 22 Apr 2024 13:15:42 +0200 Subject: ci: Forbid compilation warnings --- flake.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 1ef810b7..5817ee33 100644 --- a/flake.nix +++ b/flake.nix @@ -52,6 +52,7 @@ version = "0.1.0"; duneVersion = "3"; src = ./compiler; + OCAMLPARAM="_,warn-error=+A"; # Turn all warnings into errors. propagatedBuildInputs = [ easy_logging charon.packages.${system}.charon-ml ] ++ (with ocamlPackages; [ -- cgit v1.3.1 From 10e5ca4c48c1d5729ee877612b7d95dfe2636159 Mon Sep 17 00:00:00 2001 From: Guillaume Boisseau Date: Tue, 23 Apr 2024 09:34:43 +0200 Subject: Typo Co-authored-by: Son HO --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 5817ee33..f77bd23b 100644 --- a/flake.nix +++ b/flake.nix @@ -41,7 +41,7 @@ ]; buildPhase = '' if ! dune build @fmt; then - echo 'ERROR: Code is not fmrmatted. Run `make format` to format the project files'. + echo 'ERROR: Code is not formatted. Run `make format` to format the project files'. exit 1 fi ''; -- cgit v1.3.1