Skip to content

Commit 8e17c66

Browse files
ntkmeeregon
authored andcommitted
Add JRuby for Windows on Arm
1 parent 8760793 commit 8e17c66

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
strategy:
7878
fail-fast: false
7979
matrix:
80-
os: [ ubuntu-22.04, ubuntu-24.04, ubuntu-22.04-arm, ubuntu-24.04-arm, macos-13, macos-14, windows-2022 ]
80+
os: [ ubuntu-22.04, ubuntu-24.04, ubuntu-22.04-arm, ubuntu-24.04-arm, macos-13, macos-14, windows-2022, windows-11-arm ]
8181
runs-on: ${{ matrix.os }}
8282
outputs:
8383
commit: ${{ steps.latest_commit.outputs.commit }}
@@ -131,8 +131,11 @@ jobs:
131131
if: startsWith(matrix.os, 'windows')
132132
- run: echo $Env:Path
133133

134+
# JAVA_HOME_21_AARCH64 - https://github.com/actions/partner-runner-images/blob/main/images/arm-windows-11-image.md#java
135+
# JAVA_HOME_21_arm64 - https://github.com/actions/runner-images/blob/main/images/macos/macos-15-arm64-Readme.md#java
136+
# JAVA_HOME_21_X64 - https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md#java
134137
- name: switch to Java 21 for verification
135-
run: echo "JAVA_HOME=${JAVA_HOME_21_X64:-${JAVA_HOME_21_arm64:-}}" >> "$GITHUB_ENV"
138+
run: echo "JAVA_HOME=${JAVA_HOME_21_AARCH64:-${JAVA_HOME_21_arm64:-${JAVA_HOME_21_X64:-}}}" >> "$GITHUB_ENV"
136139
shell: bash
137140
- run: ruby --version
138141
- run: ruby -e 'raise unless RUBY_ENGINE == %{jruby}'

0 commit comments

Comments
 (0)