CI: less build artifacts
This commit is contained in:
parent
28b4c8e6ef
commit
7689021810
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,6 +5,8 @@
|
||||
/tezos-webclient
|
||||
/tezos-attacker
|
||||
|
||||
/src/Makefile.local
|
||||
|
||||
/src/webclient_static.ml
|
||||
/src/.depend
|
||||
|
||||
|
@ -29,6 +29,7 @@ build:
|
||||
tags:
|
||||
- tezos_builder
|
||||
script:
|
||||
- echo "PRODUCTION=yes" > src/Makefile.local
|
||||
- make -j4
|
||||
artifacts:
|
||||
expire_in: 1 week
|
||||
|
@ -1,4 +1,5 @@
|
||||
|
||||
-include Makefile.local
|
||||
include Makefile.config
|
||||
|
||||
TZCOMPILER=../tezos-protocol-compiler
|
||||
@ -357,7 +358,9 @@ proto/embedded_proto_%.cmxa: \
|
||||
proto/%/TEZOS_PROTOCOL \
|
||||
$$(wildcard proto/%/*.ml) \
|
||||
$$(wildcard proto/%/*.mli)
|
||||
@${TZCOMPILER} -static -build-dir proto/$*/_tzbuild $@ proto/$*/
|
||||
@${TZCOMPILER} -static ${DEVFLAGS} \
|
||||
-build-dir proto/$*/_tzbuild \
|
||||
$@ proto/$*/
|
||||
|
||||
CLIENT_PROTO_INCLUDES := \
|
||||
minutils utils node/updater node/db node/net node/shell client \
|
||||
@ -370,7 +373,8 @@ proto/client_embedded_proto_%.cmxa: \
|
||||
proto/%/TEZOS_PROTOCOL \
|
||||
$$(wildcard proto/%/*.ml) \
|
||||
$$(wildcard proto/%/*.mli)
|
||||
@./${TZCOMPILER} -static -client -build-dir client/embedded/$*/_tzbuild \
|
||||
@./${TZCOMPILER} -static -client ${DEVFLAGS} \
|
||||
-build-dir client/embedded/$*/_tzbuild \
|
||||
$(addprefix -I , ${CLIENT_PROTO_INCLUDES}) \
|
||||
$@ proto/$*
|
||||
|
||||
|
@ -8,8 +8,12 @@ INCLUDES = \
|
||||
$(patsubst %, -package %, $(PACKAGES)) \
|
||||
$(patsubst %, -open %, $(OPENED_MODULES))
|
||||
|
||||
ifneq ($(strip ${PRODUCTION}),yes)
|
||||
DEVFLAGS := -bin-annot -g
|
||||
endif
|
||||
|
||||
OCAMLFLAGS = \
|
||||
-g -safe-string -bin-annot -w +27-30-40 -short-paths \
|
||||
${DEVFLAGS} -short-paths -safe-string -w +27-30-40 \
|
||||
${INCLUDES} \
|
||||
${EXTRA_OCAMLFLAGS}
|
||||
|
||||
|
@ -3,6 +3,7 @@ all: \
|
||||
../client_$(PROTO_VERSION).cmx \
|
||||
../webclient_$(PROTO_VERSION).cmx
|
||||
|
||||
-include ../../../Makefile.local
|
||||
include ../../../Makefile.config
|
||||
|
||||
NODE_DIRECTORIES = \
|
||||
|
@ -69,6 +69,8 @@ clean::
|
||||
-rm -f mining/*.cm* mining/*~ mining/*.o mining/*.a
|
||||
-rm -f mining/*.deps mining/*.deps.byte
|
||||
|
||||
.INTERMEDIATE: webclient/browser/main.byte
|
||||
|
||||
JS_PACKAGES := \
|
||||
lwt \
|
||||
cstruct \
|
||||
|
@ -310,6 +310,8 @@ let main () =
|
||||
"-static", Arg.Set static, " Build a library (.cmxa)";
|
||||
"-client", Arg.Set client, " Preserve type equality with concrete node environment (used to embed protocol into the client)" ;
|
||||
"-I", Arg.String (fun s -> include_dirs := s :: !include_dirs), "path Path for concrete node signatures (used to embed protocol into the client)" ;
|
||||
"-bin-annot", Arg.Set Clflags.binary_annotations, " (see ocamlopt)" ;
|
||||
"-g", Arg.Set Clflags.debug, " (see ocamlopt)" ;
|
||||
"-build-dir", Arg.String (fun s -> build_dir := Some s), "path Reuse build dir (incremental compilation)"] in
|
||||
let usage_msg = Printf.sprintf "Usage: %s <out> <src>\nOptions are:" Sys.argv.(0) in
|
||||
Arg.parse args_spec (fun s -> anonymous := s :: !anonymous) usage_msg ;
|
||||
@ -374,7 +376,6 @@ let main () =
|
||||
Clflags.nopervasives := true;
|
||||
Warnings.parse_options false warnings;
|
||||
Warnings.parse_options true warn_error;
|
||||
if keep_object then Clflags.binary_annotations := true;
|
||||
|
||||
let md5 =
|
||||
if not client then
|
||||
|
@ -43,7 +43,10 @@ PACKAGES := \
|
||||
sodium \
|
||||
unix \
|
||||
kaputt \
|
||||
bisect_ppx.runtime
|
||||
|
||||
ifeq ($(strip ${COVERAGE}),yes)
|
||||
PACKAGES += bisect_ppx.runtime
|
||||
endif
|
||||
|
||||
############################################################################
|
||||
## External packages
|
||||
|
Loading…
Reference in New Issue
Block a user