Trim trailing whitespace on sample #1856
This file contains 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: CRuby bindings | |
concurrency: | |
group: "${{github.workflow}}-${{github.ref}}" | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test-all: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Set up latest ruby head | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: head | |
bundler: none | |
- uses: actions/checkout@v4 | |
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@v4 | |
with: | |
path: ruby/prism | |
fetch-depth: 1 | |
- run: tool/sync_default_gems.rb prism | |
working-directory: ruby/ruby | |
- name: Build Ruby | |
run: | | |
autoconf | |
./configure -C --disable-install-doc | |
make -j2 | |
working-directory: ruby/ruby | |
- name: make test-all | |
run: make -j2 -s test-all TESTS="prism --no-retry" | |
working-directory: ruby/ruby |