diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a36d17f..4bc39ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,11 @@ jobs: - uses: olafurpg/setup-scala@v13 with: java-version: "adopt@1.${{ matrix.java }}" + - name: Use CI sbt jvmopts + shell: bash + run: | + mv .jvmopts-ci .jvmopts + cat .jvmopts - name: Setup Windows C++ toolchain uses: ilammy/msvc-dev-cmd@v1 if: ${{ matrix.os == 'windows-latest' }} diff --git a/.github/workflows/native.yml b/.github/workflows/native.yml index 6a91c92..f0486aa 100644 --- a/.github/workflows/native.yml +++ b/.github/workflows/native.yml @@ -37,6 +37,11 @@ jobs: distribution: temurin java-version: 8 cache: sbt + - name: Use CI sbt jvmopts + shell: bash + run: | + mv .jvmopts-ci .jvmopts + cat .jvmopts - run: git fetch --tags || true - name: Setup Windows C++ toolchain uses: ilammy/msvc-dev-cmd@v1 diff --git a/.jvmopts-ci b/.jvmopts-ci new file mode 100644 index 0000000..0f24832 --- /dev/null +++ b/.jvmopts-ci @@ -0,0 +1,6 @@ +-Xss4m +-Xms5G +-Xmx5G +-XX:ReservedCodeCacheSize=1024m +-XX:+TieredCompilation +-Dfile.encoding=UTF-8