From 7e7b5be0cbbf44465aae4eb9ef5edd92b7152c01 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Thu, 26 Jun 2025 18:15:25 -0500 Subject: [PATCH] Remove bin/ruby hacks From jruby/jruby#8875: * The bash script is now always installed as both `jruby` and `ruby`, so copying or linking is unnecessary. * We now include in our distribution a `ruby.bat` so creating that is unnecessary. --- .github/workflows/build.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6ce93ea..9e2936d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -115,21 +115,6 @@ jobs: ls -l jruby-*-SNAPSHOT/bin mv jruby-*-SNAPSHOT jruby-head ls -l jruby-head/bin - - name: Add ruby alias - if: "!startsWith(matrix.os, 'windows')" - run: | - cd jruby-head/bin - ln -s jruby ruby - - name: Add ruby alias (Windows) - if: startsWith(matrix.os, 'windows') - shell: bash - run: | - cd jruby-head/bin - # Copy bash launcher, so 'ruby' works in bash - cp jruby ruby - # Create ruby.bat, so 'ruby' works in pwsh - echo -en "@ECHO OFF\r\n@\"%~dp0jruby.exe\" %*\r\n" > ruby.bat - ls -l - name: Create archive run: tar czf jruby-head-${{ steps.platform.outputs.platform }}.tar.gz jruby-head