From 89a5e075db740c4ed0803afdb1e3051262475d7e Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Tue, 16 Jul 2024 08:50:18 +0200 Subject: [PATCH] CI: Ruby 2.5 runs on macos-13 (amd64) CI: Add memory to JRuby, to avoid an OOM. --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9a3576ae..0d1523fb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,6 +21,9 @@ jobs: - { os: windows-latest, ruby: ucrt } - { os: windows-latest, ruby: mingw } - { os: windows-latest, ruby: mswin } + - { os: macos-13, ruby: 2.5 } + exclude: + - { os: macos-latest, ruby: 2.5 } steps: - uses: actions/checkout@v4 - name: Set up Ruby @@ -30,6 +33,10 @@ jobs: apt-get: "haveged libyaml-dev" brew: libyaml vcpkg: libyaml + - name: Set JRuby ENV vars + run: | + echo 'JAVA_OPTS=-Xmx1g' >> $GITHUB_ENV + if: ${{ ! startsWith(matrix.os, 'windows') }} - name: Install dependencies run: bundle install --jobs 1 - name: Run test