Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,26 @@ jobs:
matrix:
target: [rubygems, bundler]
steps:
- name: Set up latest ruby head
uses: ruby/setup-ruby@v1
with:
ruby-version: head
bundler: none
- name: Save latest buildable revision to environment
run: echo "::set-env name=REF::$(ruby -v | cut -d')' -f1 | cut -d' ' -f5)"
- uses: actions/checkout@v2
with:
repository: ruby/ruby
path: ruby/ruby
fetch-depth: 10
- name: Checkout the latest buildable revision
run: git switch -c ${{ env.REF }}
working-directory: ruby/ruby
- 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 ruby
- name: Prepare the working directory
run: |
mkdir ruby
mkdir rubygems
- uses: actions/checkout@v2
with:
repository: ruby/ruby
path: ruby/ruby
- name: Build Ruby
run: |
autoconf
Expand All @@ -41,12 +48,12 @@ jobs:
ruby tool/sync_default_gems.rb rubygems
make test-all TESTS="rubygems -j2"
working-directory: ruby/ruby
continue-on-error: true
if: matrix.target == 'rubygems'
- name: Test Bundler
run: |
ruby tool/sync_default_gems.rb bundler
make test-bundler
git checkout lib/bundler/bundler.gemspec
git add .
make test-bundler-parallel
working-directory: ruby/ruby
continue-on-error: true
if: matrix.target == 'bundler'