Skip to content

Commit 79e6e92

Browse files
authored
Install JDK 21 for JRuby 10 (#22)
1 parent f1ed6e2 commit 79e6e92

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
if: startsWith(matrix.os, 'ubuntu') && startsWith(steps.ruby.outputs.ruby, 'ruby-')
6262
- run: sudo apt-get install -y --no-install-recommends libyaml-dev
6363
if: startsWith(matrix.os, 'ubuntu') && startsWith(steps.ruby.outputs.ruby, 'truffleruby')
64+
- run: echo "JAVA_HOME=${JAVA_HOME_21_X64:-${JAVA_HOME_21_arm64:-}}" >> "$GITHUB_ENV"
65+
if: startsWith(steps.ruby.outputs.ruby, 'jruby-')
6466

6567
- name: Install system ruby for ruby-2.5.2
6668
run: sudo apt-get install -y --no-install-recommends ruby
@@ -154,6 +156,9 @@ jobs:
154156
run: '! curl -s -L --head --fail https://github.com/ruby/ruby-builder/releases/download/${{ steps.info.outputs.tag }}/${{ steps.ruby.outputs.archive }}'
155157
shell: bash
156158

159+
- run: echo "JAVA_HOME=${JAVA_HOME_21_X64:-${JAVA_HOME_21_arm64:-}}" >> "$GITHUB_ENV"
160+
shell: bash
161+
157162
- name: Set PREFIX
158163
run: echo "PREFIX=$HOME/.rubies/${{ steps.ruby.outputs.ruby }}" >> $GITHUB_ENV
159164
shell: bash

0 commit comments

Comments
 (0)