Skip to content

Commit

Permalink
Simplify using the latest ruby-build features
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Sep 23, 2024
1 parent 135bc7c commit afe25b1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ jobs:
run: sudo apt-get install -y --no-install-recommends ruby
if: startsWith(matrix.os, 'ubuntu') && steps.ruby.outputs.ruby == 'ruby-2.5.2'

- name: Set RUBY_BUILD_RUBY_NAME
run: |
ruby="${{ steps.ruby.outputs.ruby }}"
if [[ $ruby == ruby-* ]]; then
echo "RUBY_BUILD_RUBY_NAME=${ruby#ruby-}" >> $GITHUB_ENV
else
echo "RUBY_BUILD_RUBY_NAME=$ruby" >> $GITHUB_ENV
fi
- name: Set PREFIX
run: |
ruby="${{ steps.ruby.outputs.ruby }}"
Expand All @@ -98,7 +90,7 @@ jobs:
if: matrix.os == 'macos-14' && startsWith(steps.ruby.outputs.ruby, 'ruby-3.1')

- name: Build Ruby
run: ruby-build --verbose $RUBY_BUILD_RUBY_NAME $PREFIX
run: ruby-build --verbose ${{ steps.ruby.outputs.ruby }} $PREFIX
env:
CPPFLAGS: "-DENABLE_PATH_CHECK=0" # https://github.com/actions/virtual-environments/issues/267
- name: Create archive
Expand Down

0 comments on commit afe25b1

Please sign in to comment.