Skip to content

Commit

Permalink
Merge pull request ruby#47 from ruby/master
Browse files Browse the repository at this point in the history
[pull] master from ruby:master
  • Loading branch information
devkadirselcuk committed Dec 7, 2021
2 parents 0ee103c + 794b9a2 commit 624dd49
Show file tree
Hide file tree
Showing 370 changed files with 6,730 additions and 3,975 deletions.
1 change: 1 addition & 0 deletions .cirrus.yml
Expand Up @@ -10,6 +10,7 @@ env:

task:
name: Arm64 Graviton2 / $CC
skip: "changesIncludeOnly('doc/**', '**.{md,rdoc}')"
arm_container:
# We use the arm64 images at http://ghcr.io/ruby/ruby-ci-image .
image: ghcr.io/ruby/ruby-ci-image:$CC
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/baseruby.yml
Expand Up @@ -13,8 +13,8 @@ on:
- '**.rdoc'

concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}

jobs:
baseruby:
Expand All @@ -33,6 +33,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: .downloaded-cache
key: downloaded-cache
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/bundled_gems.yml
Expand Up @@ -38,6 +38,11 @@ jobs:
sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev bison autoconf ruby
if: ${{ steps.diff.outcome == 'failure' }}

- uses: actions/cache@v2
with:
path: .downloaded-cache
key: downloaded-cache

- name: Build
run: |
./autogen.sh
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/check_dependencies.yml
Expand Up @@ -12,8 +12,8 @@ on:
- '**.rdoc'

concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}

jobs:
update-deps:
Expand All @@ -39,6 +39,10 @@ jobs:
git config --global advice.detachedHead 0
git config --global init.defaultBranch garbage
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: .downloaded-cache
key: downloaded-cache
- run: ./autogen.sh
- name: Run configure
run: ./configure -C --disable-install-doc --disable-rubygems --with-gcc 'optflags=-O0' 'debugflags=-save-temps=obj -g'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check_misc.yml
Expand Up @@ -2,8 +2,8 @@ name: Miscellaneous checks
on: [push, pull_request]

concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}

jobs:
checks:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -15,8 +15,8 @@ on:
- cron: '0 12 * * 4'

concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}

jobs:
CodeQL-Build:
Expand All @@ -37,6 +37,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- uses: actions/cache@v2
with:
path: .downloaded-cache
key: downloaded-cache

- name: Remove an obsolete rubygems vendored file
run: sudo rm /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/compilers.yml
Expand Up @@ -13,8 +13,8 @@ on:
- '**.rdoc'

concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}

# Github actions does not support YAML anchors. This creative use of
# environment variables (plus the "echo $GITHUB_ENV" hack) is to reroute that
Expand Down Expand Up @@ -200,6 +200,10 @@ jobs:
- uses: actions/checkout@v2
with:
path: src
- uses: actions/cache@v2
with:
path: src/.downloaded-cache
key: downloaded-cache
- run: ./autogen.sh
working-directory: src
- name: Run configure
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/mingw.yml
Expand Up @@ -12,15 +12,15 @@ on:
- '**.rdoc'

concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}

# Notes:
# Actions console encoding causes issues, see test-all & test-spec steps
#
jobs:
make:
runs-on: windows-2019
runs-on: windows-2022
name: ${{ github.workflow }} (${{ matrix.msystem }})
env:
MSYSTEM: ${{ matrix.msystem }}
Expand Down Expand Up @@ -54,13 +54,14 @@ jobs:
- uses: actions/checkout@v2
with:
path: src
- uses: actions/cache@v2
with:
path: src/.downloaded-cache
key: downloaded-cache
- name: Set up Ruby & MSYS2
uses: MSP-Greg/setup-ruby-pkgs@ucrt
uses: MSP-Greg/ruby-setup-ruby@win-ucrt-1
with:
ruby-version: ${{ matrix.base_ruby }}
setup-ruby-ref: MSP-Greg/ruby-setup-ruby/00-win-ucrt
mingw: _upgrade_ gmp libffi libyaml openssl ragel readline gcc
msys2: automake1.16 bison
- name: set env
run: |
echo "GNUMAKEFLAGS=-j$((2 * NUMBER_OF_PROCESSORS))" >> $GITHUB_ENV
Expand Down Expand Up @@ -112,7 +113,7 @@ jobs:
make test
- name: test-all
timeout-minutes: 40
timeout-minutes: 45
run: |
# Actions uses UTF8, causes test failures, similar to normal OS setup
chcp.com 437
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/mjit.yml
Expand Up @@ -12,8 +12,8 @@ on:
- '**.rdoc'

concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}

jobs:
make:
Expand Down Expand Up @@ -42,6 +42,10 @@ jobs:
- uses: actions/checkout@v2
with:
path: src
- uses: actions/cache@v2
with:
path: src/.downloaded-cache
key: downloaded-cache
- name: Fixed world writable dirs
run: |
chmod -v go-w $HOME $HOME/.config
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/spec_guards.yml
Expand Up @@ -13,8 +13,8 @@ on:
- '**.rdoc'

concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}

jobs:
rubyspec:
Expand Down
31 changes: 18 additions & 13 deletions .github/workflows/ubuntu.yml
Expand Up @@ -12,8 +12,8 @@ on:
- '**.rdoc'

concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}

jobs:
make:
Expand All @@ -28,7 +28,6 @@ jobs:
- test_task: "check"
os: ubuntu-20.04
configure: "--host=i686-$OSTYPE"
skipped_tests: TestReadline#test_interrupt_in_other_thread
- test_task: "test-all TESTS=--repeat-count=2"
os: ubuntu-20.04
configure: ""
Expand Down Expand Up @@ -58,14 +57,19 @@ jobs:
${arch:+cross}build-essential${arch/:/-} \
libssl-dev${arch} libyaml-dev${arch} libreadline6-dev${arch} \
zlib1g-dev${arch} libncurses5-dev${arch} libffi-dev${arch} \
pkg-config${arch} bison autoconf ruby
bison autoconf ruby
sudo apt-get install -q -y pkg-config${arch} || :
- name: git config
run: |
git config --global advice.detachedHead 0
git config --global init.defaultBranch garbage
- uses: actions/checkout@v2
with:
path: src
- uses: actions/cache@v2
with:
path: src/.downloaded-cache
key: downloaded-cache
- name: Fixed world writable dirs
run: |
chmod -v go-w $HOME $HOME/.config
Expand All @@ -91,19 +95,20 @@ jobs:
if: ${{ matrix.test_task == 'check' }}
- name: make ${{ matrix.test_task }}
run: |
if [ ${{ matrix.test_task }} = 'check' ]; then
TESTS=`echo "${{ matrix.skipped_tests }}" | sed 's| |$/ -n!/|g;s|^|-n!/|;s|$|$$/|'`
fi
$SETARCH make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"}
if [ ${{ matrix.test_task }} = 'check' -a "${TESTS:+set}" ]; then
TESTS=`echo "${{ matrix.skipped_tests }}" | sed 's| |$/ -n/|g;s|^|-n/|;s|$|$$/|'`
unset GNUMAKEFLAGS
$SETARCH make -s test-all TESTS="$TESTS"
fi
$SETARCH make -s ${{ matrix.test_task }} ${TESTS:+TESTS=`echo "$TESTS" | sed 's| |$/ -n!/|g;s|^|-n!/|;s|$|$$/|'`}
timeout-minutes: 40
env:
RUBY_TESTOPTS: "-q --tty=no"
TESTS: ${{ matrix.test_task == 'check' && matrix.skipped_tests || '' }}
TEST_BUNDLED_GEMS_ALLOW_FAILURES: ""
- name: make skipped tests
run: |
$SETARCH make -s test-all TESTS=`echo "$TESTS" | sed 's| |$/ -n/|g;s|^|-n/|;s|$|$$/|'`
env:
GNUMAKEFLAGS: ""
RUBY_TESTOPTS: "-v --tty=no"
TESTS: ${{ matrix.skipped_tests }}
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests != '' }}
- uses: k0kubun/action-slack@v2.0.0
with:
payload: |
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/windows.yml
Expand Up @@ -12,8 +12,8 @@ on:
- '**.rdoc'

concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}

jobs:
make:
Expand Down Expand Up @@ -80,6 +80,10 @@ jobs:
- uses: actions/checkout@v2
with:
path: src
- uses: actions/cache@v2
with:
path: src/.downloaded-cache
key: downloaded-cache
- name: setup env
# %TEMP% is inconsistent with %TMP% and test-all expects they are consistent.
# https://github.com/actions/virtual-environments/issues/712#issuecomment-613004302
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/yjit-ubuntu.yml
Expand Up @@ -12,8 +12,8 @@ on:
- '**.rdoc'

concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}

jobs:
make:
Expand Down Expand Up @@ -58,6 +58,10 @@ jobs:
- uses: actions/checkout@v2
with:
path: src
- uses: actions/cache@v2
with:
path: src/.downloaded-cache
key: downloaded-cache
- name: Fixed world writable dirs
run: |
chmod -v go-w $HOME $HOME/.config
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/yjit_asm_tests.yml
Expand Up @@ -13,8 +13,8 @@ on:
- '**.rdoc'

concurrency:
group: ${{ github.workflow }} / ${{ github.ref_name }}
cancel-in-progress: true
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -10,6 +10,7 @@
*.dylib
*.elc
*.i
*.ii
*.inc
*.log
*.o
Expand Down

0 comments on commit 624dd49

Please sign in to comment.