Skip to content

Commit 3aec31f

Browse files
committed
Use the same JDK 21 as ruby-builder and setup-ruby
1 parent fac80d8 commit 3aec31f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,8 @@ jobs:
144144
- run: echo $Env:Path
145145

146146
- name: switch to Java 21 for verification
147-
uses: actions/setup-java@v3
148-
with:
149-
distribution: 'zulu'
150-
java-version: 21
147+
run: echo "JAVA_HOME=${JAVA_HOME_21_X64:-${JAVA_HOME_21_arm64:-}}" >> "$GITHUB_ENV"
148+
shell: bash
151149
- run: ruby --version
152150
- run: ruby -e 'raise unless RUBY_ENGINE == %{jruby}'
153151
- run: gem --version

0 commit comments

Comments
 (0)