forked from ruby/rubygems
-
Notifications
You must be signed in to change notification settings - Fork 2
78 lines (68 loc) · 2.31 KB
/
ruby-core.yml
File metadata and controls
78 lines (68 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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 setup
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
target: [Rubygems, Bundler]
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
repository: ruby/ruby
path: ruby/ruby
ref: v3_4_5
persist-credentials: false
- 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: Build Ruby
run: |
export GNUMAKEFLAGS="-j$((1 + $(nproc)))"
./autogen.sh
./configure -C --disable-install-doc
make
working-directory: ruby/ruby
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
path: rubygems/rubygems # We need to backport repository url to sync_default_gems.rb of `ruby_3_4` branch.
persist-credentials: false
- name: Sync tools
run: |
ruby tool/sync_default_gems.rb rubygems
mv spec/bundler/support/bundle spec/bin/bundle # TODO: fix `sync_default_gems.rb` script so we don't need to vendor the ruby-core binstub ourselves
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) }}