From e7f93b1c3ed0ce51bfdf6395c975e5fd162d68e2 Mon Sep 17 00:00:00 2001 From: Ondra Pelech Date: Tue, 11 Jul 2023 16:36:59 +0200 Subject: [PATCH] swap --- .github/workflows/ci.yml | 8 ++++++-- .sbtopts | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57a7c0ec9..c06d37bd6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,8 @@ name: CI env: - JDK_JAVA_OPTIONS: -XX:+PrintCommandLineFlags -Xmx4G -Xss4M -XX:+UseG1GC # JDK_JAVA_OPTIONS is _the_ env. variable to use for modern Java - JVM_OPTS: -XX:+PrintCommandLineFlags -Xmx4G -Xss4M -XX:+UseG1GC # for Java 8 only (sadly, it is not modern enough for JDK_JAVA_OPTIONS) + JDK_JAVA_OPTIONS: -XX:+PrintCommandLineFlags -Xmx5G -Xss4M -XX:+UseG1GC # JDK_JAVA_OPTIONS is _the_ env. variable to use for modern Java + JVM_OPTS: -XX:+PrintCommandLineFlags -Xmx5G -Xss4M -XX:+UseG1GC # for Java 8 only (sadly, it is not modern enough for JDK_JAVA_OPTIONS) NODE_OPTIONS: --max_old_space_size=6144 on: @@ -48,6 +48,10 @@ jobs: java-version: ${{ matrix.java }} - name: Cache scala dependencies uses: coursier/cache-action@v6 + - name: Set Swap Space + uses: pierotofy/set-swap-space@master + with: + swap-size-gb: 10 - name: Run tests run: sbt ++${{ matrix.scala }}! test diff --git a/.sbtopts b/.sbtopts index 9c8acb010..8287e195f 100644 --- a/.sbtopts +++ b/.sbtopts @@ -1,4 +1,4 @@ -J-XX:+PrintCommandLineFlags --J-Xmx4G +-J-Xmx5G -J-Xss4M -J-XX:+UseG1GC \ No newline at end of file