rubygems: Replace OpenSSL::PKey::{RSA,DSA,EC}#to_pem and remove #private? #14663
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ruby-core | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ci-${{ github.ref }}-${{ github.workflow }} | |
| cancel-in-progress: true | |
| permissions: # added using https://github.com/step-security/secure-workflows | |
| contents: read | |
| jobs: | |
| ruby_core: | |
| name: ${{matrix.target}} under a ruby-core / ${{matrix.branch}} | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: [Rubygems, Bundler] | |
| branch: [ruby_3_4, ruby_4_0, master] | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| repository: ruby/ruby | |
| path: ruby/ruby | |
| ref: ${{ matrix.branch }} | |
| persist-credentials: false | |
| - uses: ruby/setup-ruby@0dafeac902942906541bc140009cdbf32665b601 # v1.315.0 | |
| with: | |
| ruby-version: 3.4 | |
| bundler: none | |
| - name: Install libraries | |
| run: | | |
| set -x | |
| sudo apt-get update -q || : | |
| sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev bison autoconf | |
| - name: Build Ruby | |
| run: | | |
| export GNUMAKEFLAGS="-j$((1 + $(nproc)))" | |
| ./autogen.sh | |
| ./configure -C --disable-install-doc | |
| make | |
| working-directory: ruby/ruby | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| path: rubygems/rubygems | |
| persist-credentials: false | |
| if: matrix.branch == 'ruby_3_4' | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| path: ruby/rubygems | |
| persist-credentials: false | |
| if: matrix.branch != 'ruby_3_4' | |
| - name: Adjust sync tool for the legacy Bundler layout (ruby_3_4) | |
| run: | | |
| sed -i 's|/bundler/spec"|/spec"|g' tool/sync_default_gems.rb | |
| sed -i 's|/bundler/bin/|/bin/|g' tool/sync_default_gems.rb | |
| sed -i 's|upstream}/bundler/lib/|upstream}/lib/|g' tool/sync_default_gems.rb | |
| sed -i 's|upstream}/bundler/exe/|upstream}/exe/|g' tool/sync_default_gems.rb | |
| sed -i 's|upstream}/bundler/bundler.gemspec|upstream}/bundler.gemspec|g' tool/sync_default_gems.rb | |
| working-directory: ruby/ruby | |
| if: matrix.branch == 'ruby_3_4' | |
| - name: Adjust sync tool for the legacy Bundler layout (ruby_4_0) | |
| run: | | |
| sed -i 's|\["bundler/spec", "spec/bundler"\]|["spec", "spec/bundler"]|' tool/sync_default_gems.rb | |
| sed -i 's|\["bundler/bin/#{binstub}", "spec/bin/#{binstub}"\]|["bin/#{binstub}", "spec/bin/#{binstub}"]|' tool/sync_default_gems.rb | |
| sed -i 's|\["bundler/lib/bundler.rb", "lib/bundler.rb"\]|["lib/bundler.rb", "lib/bundler.rb"]|' tool/sync_default_gems.rb | |
| sed -i 's|\["bundler/lib/bundler", "lib/bundler"\]|["lib/bundler", "lib/bundler"]|' tool/sync_default_gems.rb | |
| sed -i 's|\["bundler/exe/bundle", "libexec/bundle"\]|["exe/bundle", "libexec/bundle"]|' tool/sync_default_gems.rb | |
| sed -i 's|\["bundler/exe/bundler", "libexec/bundler"\]|["exe/bundler", "libexec/bundler"]|' tool/sync_default_gems.rb | |
| sed -i 's|\["bundler/bundler.gemspec", "lib/bundler/bundler.gemspec"\]|["bundler.gemspec", "lib/bundler/bundler.gemspec"]|' tool/sync_default_gems.rb | |
| working-directory: ruby/ruby | |
| if: matrix.branch == 'ruby_4_0' | |
| - name: Sync tools | |
| run: | | |
| ruby tool/sync_default_gems.rb rubygems | |
| mv spec/bundler/support/bundle spec/bin/bundle 2>/dev/null || true | |
| working-directory: ruby/ruby | |
| - name: Test RubyGems | |
| run: make -s test-all TESTS="--no-retry -j$((1 + $(nproc)))" | |
| working-directory: ruby/ruby | |
| if: matrix.target == 'Rubygems' | |
| - name: Test Bundler | |
| run: | | |
| git add . | |
| make test-bundler-parallel | |
| working-directory: ruby/ruby | |
| if: matrix.target == 'Bundler' | |
| all-pass: | |
| name: All ruby-core jobs pass | |
| if: always() | |
| needs: | |
| - ruby_core | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: check dependent jobs | |
| uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 | |
| with: | |
| jobs: ${{ toJSON(needs) }} |