From 431cb4612108db779cee8d5ab37f20e50565b580 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Mon, 7 Dec 2020 10:06:28 +0000 Subject: [PATCH] Refactor build scripts to avoid out-of-memory errors --- .circleci/config.yml | 2 +- etc/build-impl.xml | 25 ++++++++++++ specifications/xslt-40/build.xml | 69 ++++++++++++++++++++++++++------ 3 files changed, 82 insertions(+), 14 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9b079da..943a35b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ jobs: working_directory: ~/repo environment: - JVM_OPTS: -Xmx3200m + JVM_OPTS: -Xmx16g -XX:MetaspaceSize=4g -XX:MaxMetaspaceSize=8g TERM: dumb steps: diff --git a/etc/build-impl.xml b/etc/build-impl.xml index ba5d1fe..f2bb487 100644 --- a/etc/build-impl.xml +++ b/etc/build-impl.xml @@ -93,6 +93,19 @@ + + + + + + + + + + + + + @@ -155,6 +169,16 @@ if="build.spec" unless="spec.exists"> + + + + + + + + + + diff --git a/specifications/xslt-40/build.xml b/specifications/xslt-40/build.xml index 3d0236c..0d36be3 100644 --- a/specifications/xslt-40/build.xml +++ b/specifications/xslt-40/build.xml @@ -100,12 +100,15 @@ highlight.output - the output HTML5 file --> - + + + + + + + + + @@ -176,9 +179,9 @@ - + - + @@ -267,7 +270,24 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -298,16 +330,27 @@ - - - - + + + + + + + + + + + + +