Skip to content

Commit afe25b1

Browse files
committed
Simplify using the latest ruby-build features
1 parent 135bc7c commit afe25b1

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@ jobs:
6464
run: sudo apt-get install -y --no-install-recommends ruby
6565
if: startsWith(matrix.os, 'ubuntu') && steps.ruby.outputs.ruby == 'ruby-2.5.2'
6666

67-
- name: Set RUBY_BUILD_RUBY_NAME
68-
run: |
69-
ruby="${{ steps.ruby.outputs.ruby }}"
70-
if [[ $ruby == ruby-* ]]; then
71-
echo "RUBY_BUILD_RUBY_NAME=${ruby#ruby-}" >> $GITHUB_ENV
72-
else
73-
echo "RUBY_BUILD_RUBY_NAME=$ruby" >> $GITHUB_ENV
74-
fi
7567
- name: Set PREFIX
7668
run: |
7769
ruby="${{ steps.ruby.outputs.ruby }}"
@@ -98,7 +90,7 @@ jobs:
9890
if: matrix.os == 'macos-14' && startsWith(steps.ruby.outputs.ruby, 'ruby-3.1')
9991

10092
- name: Build Ruby
101-
run: ruby-build --verbose $RUBY_BUILD_RUBY_NAME $PREFIX
93+
run: ruby-build --verbose ${{ steps.ruby.outputs.ruby }} $PREFIX
10294
env:
10395
CPPFLAGS: "-DENABLE_PATH_CHECK=0" # https://github.com/actions/virtual-environments/issues/267
10496
- name: Create archive

0 commit comments

Comments
 (0)