Skip to content

Commit 96ce6c5

Browse files
committed
Sync logic for extracting JRuby on Windows with jruby-dev-builder
1 parent 6921781 commit 96ce6c5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,15 @@ jobs:
165165
shell: bash
166166
- run: curl --fail -L -O 'https://repo1.maven.org/maven2/org/jruby/jruby-dist/${{ matrix.jruby-version }}/jruby-dist-${{ matrix.jruby-version }}-bin.tar.gz'
167167
shell: bash
168-
- name: Build JRuby
168+
# NOTE: Keep the logic from here in sync with jruby-dev-builder's build job
169+
# Extracting must be done in the native shell: https://github.com/MSP-Greg/ruby-setup-ruby/issues/1
170+
# We need to use to use the system tar, the Git tar seems basically broken
171+
- run: C:\windows\system32\tar.exe xf jruby-dist-${{ matrix.jruby-version }}-bin.tar.gz
172+
- name: Move to prefix
169173
shell: bash
170174
run: |
171175
mkdir $(dirname $PREFIX)
172-
tar tf jruby-dist-${{ matrix.jruby-version }}-bin.tar.gz
173-
tar xf jruby-dist-${{ matrix.jruby-version }}-bin.tar.gz -C $(dirname $PREFIX)
176+
mv jruby-${{ matrix.jruby-version }} $(dirname $PREFIX)
174177
ls -l $PREFIX/bin
175178
- name: Create archive
176179
run: tar czf ${{ steps.ruby.outputs.archive }} -C $(dirname $PREFIX) $(basename $PREFIX)

0 commit comments

Comments
 (0)