From 326d327fb6669963306afe65b4ae2d4ccfdaa86d Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Wed, 17 Apr 2024 10:53:26 +0300 Subject: [PATCH] [CI] Remove max heap size setting for maven builds on windows Don't restrict the maximum heap size of maven builds (other than for native tests) to be consistent on how we build on linux and avoid OoM errors. --- .github/workflows/base-windows.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/base-windows.yml b/.github/workflows/base-windows.yml index e3324258b399..2f314a50d538 100644 --- a/.github/workflows/base-windows.yml +++ b/.github/workflows/base-windows.yml @@ -81,7 +81,6 @@ env: MX_PYTHON: python QUARKUS_PATH: ${{ github.workspace }}\quarkus MANDREL_PACKAGING_REPO: ${{ github.workspace }}\mandrel-packaging - MAVEN_OPTS: -Xmx2g -XX:MaxMetaspaceSize=1g COLLECTOR_URL: https://collector.foci.life/api/v1/image-stats jobs: @@ -403,7 +402,9 @@ jobs: - get-jdk - get-test-matrix runs-on: windows-2022 - # env: + env: + # leave more space for the actual native compilation and execution + MAVEN_OPTS: -Xmx1g # USE_NATIVE_IMAGE_JAVA_PLATFORM_MODULE_SYSTEM: false # Ignore the following YAML Schema error timeout-minutes: ${{matrix.timeout}}