From dc5ef0f43a25fed524402efbaa58b7ceaf8fe407 Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov <1517853+kpavlov@users.noreply.github.com> Date: Thu, 11 Sep 2025 16:55:31 +0300 Subject: [PATCH] Update build workflow to use larger macOS runner and set Java options (#253) ## Motivation and Context To speed-up CI: - Switch `runs-on` to `macos-latest-xlarge` for additional resources. - Add `JAVA_OPTS` environment variable for optimized memory and encoding settings during Gradle builds. ## How Has This Been Tested? ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [x] Build improvement ## Checklist - [ ] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [ ] My code follows the repository's style guidelines - [ ] New and existing tests pass locally - [ ] I have added appropriate error handling - [ ] I have added or updated documentation as needed ## Additional context --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0b3f2d..a3e2725 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ concurrency: jobs: validate-pr: - runs-on: macos-latest + runs-on: macos-latest-xlarge name: Validate PR steps: - uses: actions/checkout@v5 @@ -33,6 +33,8 @@ jobs: - name: Build with Gradle run: ./gradlew clean ktlintCheck build koverLog koverHtmlReport + env: + JAVA_OPTS: "-Xmx8g -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Dkotlin.daemon.jvm.options=-Xmx6g" - name: Upload Reports if: always()