Skip to content

Commit e559d1c

Browse files
committed
Use jt ruby-home instead of mx standalone-home
* The latter no longer works with unchained standalones.
1 parent a8e6cc7 commit e559d1c

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@ jobs:
111111
- run: sudo apt-get install -y --no-install-recommends libyaml-dev
112112
if: startsWith(matrix.os, 'ubuntu')
113113

114+
- name: Download Oracle GraalVM EA build
115+
uses: graalvm/setup-graalvm@v1
116+
with:
117+
java-version: 'latest-ea'
118+
distribution: 'graalvm'
119+
set-java-home: 'false'
120+
- name: Set BOOTSTRAP_GRAALVM
121+
run: echo "BOOTSTRAP_GRAALVM=$GRAALVM_HOME" >> $GITHUB_ENV
122+
114123
- name: Setup jt
115124
run: echo "$PWD/bin" >> $GITHUB_PATH
116125
- name: Clone Graal
@@ -128,13 +137,13 @@ jobs:
128137
run: jt build --env native --extra-image-builder-argument=rubyvm:-J-XX:MaxRAMPercentage=100
129138
if: matrix.name == '-head'
130139
- name: Build TruffleRuby (jvm)
131-
run: jt build --env jvm-ce-libgraal
140+
run: jt build --env jvm-ce
132141
if: matrix.name == '+graalvm-head'
133142

134143
- run: mkdir -p ~/.rubies
135-
- run: mv $(jt mx --env native standalone-home --type=native ruby) ~/.rubies/truffleruby${{ matrix.name }}
144+
- run: mv $(jt -u native ruby-home) ~/.rubies/truffleruby${{ matrix.name }}
136145
if: matrix.name == '-head'
137-
- run: mv $(jt mx --env jvm-ce-libgraal standalone-home --type=jvm ruby) ~/.rubies/truffleruby${{ matrix.name }}
146+
- run: mv $(jt -u jvm-ce ruby-home) ~/.rubies/truffleruby${{ matrix.name }}
138147
if: matrix.name == '+graalvm-head'
139148
- name: Create archive
140149
run: tar czf truffleruby${{ matrix.name }}-${{ steps.platform.outputs.platform }}.tar.gz -C ~/.rubies truffleruby${{ matrix.name }}

0 commit comments

Comments
 (0)