Skip to content

Commit a50c7bd

Browse files
committed
ci: compile with warning as errors
1 parent 05ec7e1 commit a50c7bd

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
opam pin add -n easycrypt .
3535
opam install --deps-only easycrypt
3636
- name: Compile EasyCrypt
37-
run: opam exec -- make
37+
run: opam exec -- make PROFILE=ci
3838

3939
compile-nix:
4040
name: EasyCrypt compilation (nix)

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CHECK += --bin-args=-timeout --bin-args="$(ECTOUT)"
1414
CHECK += $(foreach arg,$(ECARGS),--bin-args="$(arg)")
1515
CHECK += $(ECEXTRA) config/tests.config
1616
NIX ?= nix --extra-experimental-features "nix-command flakes"
17+
PROFILE ?= dev
1718

1819
# --------------------------------------------------------------------
1920
UNAME_P = $(shell uname -p)
@@ -29,7 +30,7 @@ default: build
2930

3031
build:
3132
rm -f src/ec.exe ec.native
32-
dune build
33+
$(DUNE) build --profile=$(PROFILE)
3334
ln -sf src/ec.exe ec.native
3435
ifeq ($(UNAME_P)-$(UNAME_S),arm-Darwin)
3536
-codesign -f -s - src/ec.exe

src/dune

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(env
22
(dev (flags :standard -rectypes -warn-error -a+31 -w +28+33-9-23-32-58-67-69))
3-
(release (flags :standard -rectypes -warn-error -a+31 -w +28+33-9-23-32-58-67-69)
3+
(ci (flags :standard -rectypes -warn-error +a -w +28+33-9-23-32-58-67-69))
4+
(release (flags :standard -rectypes -warn-error -a -w +28+33-9-23-32-58-67-69)
45
(ocamlopt_flags -O3 -unbox-closures)))
56

67
(include_subdirs unqualified)

0 commit comments

Comments
 (0)