Skip to content

Commit

Permalink
Separate build and install to get an estimate install time
Browse files Browse the repository at this point in the history
  • Loading branch information
deannagarcia committed Jan 19, 2023
1 parent b10ce37 commit b7b7eb6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ruby_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit b7b7eb6

Please sign in to comment.