Separate build and install to get an estimate install time

pull/11468/head
Deanna Garcia 2 years ago
parent b10ce37703
commit b7b7eb6865
  1. 18
      .github/workflows/ruby_install.yml

@ -39,15 +39,17 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build and install cruby gem
run: |
$HOME/bin/bazel run ruby:release
gem install bazel-bin/ruby/release.runfiles/com_google_protobuf/tmp/google-protobuf-*
- name: Build cruby gem
run: $HOME/bin/bazel run ruby:release
if: ${{ !contains(matrix.ruby, 'jruby') }}
- name: Build and install jruby gem
run: |
$HOME/bin/bazel run ruby:jruby_release
gem install bazel-bin/ruby/jruby_release.runfiles/com_google_protobuf/tmp/google-protobuf-*
- name: Install cruby gem
run: gem install bazel-bin/ruby/release.runfiles/com_google_protobuf/tmp/google-protobuf-*
if: ${{ !contains(matrix.ruby, 'jruby') }}
- name: Build jruby gem
run: $HOME/bin/bazel run ruby:jruby_release
if: ${{ contains(matrix.ruby, 'jruby') }}
- name: Install jruby gem
run: gem install bazel-bin/ruby/jruby_release.runfiles/com_google_protobuf/tmp/google-protobuf-*
if: ${{ contains(matrix.ruby, 'jruby') }}
- name: Test installation
run: |

Loading…
Cancel
Save