3535 ruby="ruby-$ruby"
3636 fi
3737 echo "ruby=$ruby" >> $GITHUB_OUTPUT
38+ echo "archive=$ruby-${{ steps.platform.outputs.platform }}-fixed.tar.gz" >> $GITHUB_OUTPUT
3839 - name : Check if already built
39- run : ' ! curl -s -L --head --fail https://github.com/ruby/ruby-builder/releases/download/${{ steps.info.outputs.tag }}/${{ steps.ruby.outputs.ruby }}-${{ steps.platform.outputs.platform }}-fixed.tar.gz '
40+ run : ' ! curl -s -L --head --fail https://github.com/ruby/ruby-builder/releases/download/${{ steps.info.outputs.tag }}/${{ steps.ruby.outputs.archive }}'
4041
4142 - name : Set NO_DOCUMENT
4243 run : |
9596 CPPFLAGS : " -DENABLE_PATH_CHECK=0" # https://github.com/actions/virtual-environments/issues/267
9697 RUBY_BUILD_VENDOR_OPENSSL : " true"
9798 - name : Create archive
98- run : tar czf ${{ steps.ruby.outputs.ruby }}-${{ steps.platform.outputs.platform }}-fixed.tar.gz -C $(dirname $PREFIX) $(basename $PREFIX)
99+ run : tar czf ${{ steps.ruby.outputs.archive }} -C $(dirname $PREFIX) $(basename $PREFIX)
99100 - name : Install Bundler if needed
100101 run : |
101102 if [ ! -e $PREFIX/bin/bundle ]; then
@@ -117,7 +118,7 @@ jobs:
117118 env :
118119 GH_TOKEN : ${{ github.token }}
119120 GH_REPO : ${{ github.repository }}
120- run : gh release upload "toolcache" "${{ steps.ruby.outputs.ruby }}-${{ steps.platform.outputs.platform }}-fixed.tar.gz "
121+ run : gh release upload "toolcache" "${{ steps.ruby.outputs.archive }}"
121122
122123 buildJRubyWindows :
123124 if : false
@@ -147,9 +148,10 @@ jobs:
147148 run : |
148149 ruby=jruby-${{ matrix.jruby-version }}
149150 echo "ruby=$ruby" >> $GITHUB_OUTPUT
151+ echo "archive=$ruby-${{ steps.platform.outputs.platform }}.tar.gz" >> $GITHUB_OUTPUT
150152 shell : bash
151153 - name : Check if already built
152- run : ' ! curl -s -L --head --fail https://github.com/ruby/ruby-builder/releases/download/${{ steps.info.outputs.tag }}/${{ steps.ruby.outputs.ruby }}-${{ steps.platform.outputs.platform }}.tar.gz '
154+ run : ' ! curl -s -L --head --fail https://github.com/ruby/ruby-builder/releases/download/${{ steps.info.outputs.tag }}/${{ steps.ruby.outputs.archive }}'
153155 shell : bash
154156
155157 - name : Set PREFIX
@@ -168,7 +170,7 @@ jobs:
168170 # Create ruby.bat, so 'ruby' works in pwsh
169171 echo -en "@ECHO OFF\r\n@\"%~dp0jruby.exe\" %*\r\n" > ruby.bat
170172 - name : Create archive
171- run : tar czf ${{ steps.ruby.outputs.ruby }}-${{ steps.platform.outputs.platform }}.tar.gz -C $(dirname $PREFIX) $(basename $PREFIX)
173+ run : tar czf ${{ steps.ruby.outputs.archive }} -C $(dirname $PREFIX) $(basename $PREFIX)
172174 shell : bash
173175 - name : Install Bundler if needed
174176 shell : bash
@@ -205,7 +207,7 @@ jobs:
205207 env :
206208 GH_TOKEN : ${{ github.token }}
207209 GH_REPO : ${{ github.repository }}
208- run : gh release upload "toolcache" "${{ steps.ruby.outputs.ruby }}-${{ steps.platform.outputs.platform }}.tar.gz "
210+ run : gh release upload "toolcache" "${{ steps.ruby.outputs.archive }}"
209211
210212
211213 createPullRequest :
0 commit comments