Skip to content

Commit

Permalink
Build Ruby with --enable-shared to get libruby too
Browse files Browse the repository at this point in the history
* Some use cases require libruby, such as
  ruby/setup-ruby#43
  • Loading branch information
eregon committed Mar 30, 2020
1 parent b586256 commit 4d6bc58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
if: startsWith(matrix.os, 'ubuntu') && matrix.ruby == 'ruby-2.5.2'

- name: Build Ruby
run: ruby-install --no-install-deps -j4 ${{ matrix.ruby }} -- --disable-install-doc
run: ruby-install --no-install-deps -j4 ${{ matrix.ruby }} -- --enable-shared --disable-install-doc
env:
CPPFLAGS: "-DENABLE_PATH_CHECK=0" # https://github.com/actions/virtual-environments/issues/267
- name: Install Bundler if needed
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
- name: Build Ruby
run: ruby-build --verbose ${{ matrix.ruby-version }} $HOME/.rubies/ruby-${{ matrix.ruby-version }}
env:
RUBY_CONFIGURE_OPTS: --disable-install-doc
RUBY_CONFIGURE_OPTS: --enable-shared --disable-install-doc
CPPFLAGS: "-DENABLE_PATH_CHECK=0" # https://github.com/actions/virtual-environments/issues/267
- name: Install Bundler if needed
run: |
Expand Down

0 comments on commit 4d6bc58

Please sign in to comment.