Skip to content

Commit

Permalink
Do not include Bundler in the archive
Browse files Browse the repository at this point in the history
* That way we can update Bundler without needing to recompile Ruby releases.
* Installing Bundler is about just 1 second on MRI.
  • Loading branch information
eregon committed Mar 30, 2020
1 parent 1deeb00 commit 202dd8f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:
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: Create archive
run: tar czf ${{ matrix.ruby }}-${{ matrix.os }}.tar.gz -C ~/.rubies ${{ matrix.ruby }}
- name: Install Bundler if needed
run: |
if [ ! -e ~/.rubies/${{ matrix.ruby }}/bin/bundle ]; then
export PATH="$HOME/.rubies/${{ matrix.ruby }}/bin:$PATH"
gem install bundler -v '~> 1' --no-document
fi
- name: Create archive
run: tar czf ${{ matrix.ruby }}-${{ matrix.os }}.tar.gz -C ~/.rubies ${{ matrix.ruby }}
- run: echo "::add-path::$HOME/.rubies/${{ matrix.ruby }}/bin"
- run: ruby --version
Expand Down Expand Up @@ -108,16 +108,16 @@ jobs:
cp jruby ruby
# Create ruby.bat, so 'ruby' works in pwsh
echo -en "@ECHO OFF\r\n@\"%~dp0jruby.exe\" %*\r\n" > ruby.bat
- name: Create archive
run: tar czf ${{ matrix.ruby }}-${{ matrix.os }}.tar.gz -C ~/.rubies ${{ matrix.ruby }}
shell: bash
- name: Install Bundler if needed
shell: bash
run: |
if [ ! -e ~/.rubies/${{ matrix.ruby }}/bin/bundle ]; then
export PATH="$HOME/.rubies/${{ matrix.ruby }}/bin:$PATH"
gem install bundler -v '~> 1' --no-document
fi
- name: Create archive
run: tar czf ${{ matrix.ruby }}-${{ matrix.os }}.tar.gz -C ~/.rubies ${{ matrix.ruby }}
shell: bash
- run: echo "::add-path::$Env:UserProfile\.rubies\${{ matrix.ruby }}\bin"
- run: echo $Env:PATH
Expand Down Expand Up @@ -192,14 +192,14 @@ jobs:
env:
RUBY_CONFIGURE_OPTS: --enable-shared --disable-install-doc
CPPFLAGS: "-DENABLE_PATH_CHECK=0" # https://github.com/actions/virtual-environments/issues/267
- name: Create archive
run: tar czf ruby-${{ matrix.ruby-version }}-${{ matrix.os }}.tar.gz -C ~/.rubies ruby-${{ matrix.ruby-version }}
- name: Install Bundler if needed
run: |
if [ ! -e ~/.rubies/ruby-${{ matrix.ruby-version }}/bin/bundle ]; then
export PATH="$HOME/.rubies/ruby-${{ matrix.ruby-version }}/bin:$PATH"
gem install bundler -v '~> 1' --no-document
fi
- name: Create archive
run: tar czf ruby-${{ matrix.ruby-version }}-${{ matrix.os }}.tar.gz -C ~/.rubies ruby-${{ matrix.ruby-version }}
- run: echo "::add-path::$HOME/.rubies/ruby-${{ matrix.ruby-version }}/bin"
- run: ruby --version
Expand Down

0 comments on commit 202dd8f

Please sign in to comment.