-
Notifications
You must be signed in to change notification settings - Fork 174
58 lines (54 loc) · 1.68 KB
/
cruby-bindings.yml
File metadata and controls
58 lines (54 loc) · 1.68 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
name: CRuby bindings
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
branches:
- main
pull_request:
jobs:
test-all:
strategy:
matrix:
# Some tests in this repository are only run against parse.y
# We test them here in order to not fail ruby/ruby CI.
parser:
- prism
- parse.y
runs-on: ubuntu-24.04
steps:
- name: Set up latest ruby head
uses: ruby/setup-ruby@v1
with:
ruby-version: head
bundler: none
- uses: actions/checkout@v5
with:
repository: ruby/ruby
path: ruby/ruby
fetch-depth: 1
- 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 autoconf ruby
- uses: actions/checkout@v5
with:
path: ruby/prism
fetch-depth: 1
- run: tool/sync_default_gems.rb prism
working-directory: ruby/ruby
- name: Build Ruby
run: |
ruby tool/downloader.rb -d tool -e gnu config.guess config.sub
autoconf
./configure -C --disable-install-doc --with-parser=${{ matrix.parser }}
make -j$(nproc)
working-directory: ruby/ruby
- name: make test-all
env:
RUN_OPTS: --parser=${{ matrix.parser }}
EXCLUDES: ${{ matrix.parser == 'parse.y' && './test/.excludes-parsey' }}
run: make -j$(nproc) -s test-all
working-directory: ruby/ruby