Skip to content

Commit c715beb

Browse files
authored
Merge branch 'master' into special-accessibility
2 parents eaf59ca + 3bf6187 commit c715beb

318 files changed

Lines changed: 22876 additions & 10562 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
version: 2
22
updates:
3-
- package-ecosystem: bundler
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 3
8-
allow:
9-
- dependency-type: all
3+
# - package-ecosystem: bundler
4+
# directory: "/"
5+
# schedule:
6+
# interval: daily
7+
# open-pull-requests-limit: 3
8+
# allow:
9+
# - dependency-type: all
1010

11-
- package-ecosystem: bundler
12-
directory: "/steep"
13-
schedule:
14-
interval: daily
15-
open-pull-requests-limit: 3
16-
allow:
17-
- dependency-type: all
11+
# - package-ecosystem: bundler
12+
# directory: "/steep"
13+
# schedule:
14+
# interval: daily
15+
# open-pull-requests-limit: 3
16+
# allow:
17+
# - dependency-type: all
1818

1919
- package-ecosystem: 'github-actions'
2020
directory: '/'
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Scheduled Bundle Update PR
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 2'
6+
workflow_dispatch:
7+
8+
jobs:
9+
bundle-update:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v6
15+
16+
- name: Set up Ruby
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: '4.0'
20+
21+
- name: Set up git
22+
run: |
23+
git config --global user.name "github-actions[bot]"
24+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
25+
26+
- name: Switch branch
27+
run: |
28+
git switch -c bundle-update-$(date +'%Y%m%d')-$(uuidgen | cut -c1-8)
29+
30+
- name: Install bundler
31+
run: gem install bundler
32+
33+
- name: Run bundle update
34+
run: |
35+
bundle lock --update
36+
bundle lock --update --gemfile=steep/Gemfile
37+
git add Gemfile.lock steep/Gemfile.lock
38+
39+
if git diff --cached --exit-code; then
40+
echo "No changes to commit, exiting."
41+
exit 0
42+
fi
43+
44+
git commit -m "bundle update"
45+
echo "has_update=true" >> $GITHUB_ENV
46+
47+
- name: Push branch
48+
if: env.has_update == 'true'
49+
run: git push origin HEAD
50+
51+
- name: Create Pull Request
52+
if: env.has_update == 'true'
53+
env:
54+
GH_TOKEN: ${{ secrets.DEPENDABOT_MERGE_GH_TOKEN }}
55+
run: |
56+
gh pr create \
57+
--title "bundle update ($(date +'%Y-%m-%d'))" \
58+
--body "Automated weekly bundle update" \
59+
--head "$(git rev-parse --abbrev-ref HEAD)" \
60+
--base "${{ github.event.repository.default_branch }}"

.github/workflows/c-check.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
format-check:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v6
1313
- uses: ruby/setup-ruby@v1
1414
with:
15-
ruby-version: "3.4"
15+
ruby-version: "4.0"
1616
bundler-cache: none
1717
- name: Set working directory as safe
1818
run: git config --global --add safe.directory $(pwd)
@@ -23,19 +23,22 @@ jobs:
2323
- name: Install clang-format from LLVM
2424
run: |
2525
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
26-
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main"
26+
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-20 main"
2727
sudo apt-get update
28-
sudo apt-get install -y clang-format
28+
sudo apt-get install -y clang-format-20
29+
sudo ln -sf /usr/bin/clang-format-20 /usr/local/bin/clang-format
2930
clang-format --version
31+
- name: Count processors
32+
run: nproc
3033
- name: Install Re2c
3134
run: |
3235
cd /tmp
33-
curl -L https://github.com/skvadrik/re2c/archive/refs/tags/3.1.tar.gz > re2c-3.1.tar.gz
34-
tar xf re2c-3.1.tar.gz
35-
cd re2c-3.1
36+
curl -L https://github.com/skvadrik/re2c/archive/refs/tags/4.3.tar.gz > re2c-4.3.tar.gz
37+
tar xf re2c-4.3.tar.gz
38+
cd re2c-4.3
3639
autoreconf -i -W all
3740
./configure
38-
make
41+
make -j"$(nproc)" -l"$(nproc)"
3942
sudo make install
4043
- name: Update rubygems & bundler
4144
run: |

.github/workflows/comments.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
comments:
1212
runs-on: "ubuntu-latest"
1313
# env:
14-
# RUBY_COMMIT: 1b0c46daed9186b82ab4fef1a4ab225afe582ee6
14+
# RUBY_COMMIT: v4.0.0-preview2
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1717
- uses: ruby/setup-ruby@v1
1818
with:
19-
ruby-version: "3.4.1"
19+
ruby-version: "4.0.0"
2020
bundler: none
2121
- name: Install dependencies
2222
run: |

.github/workflows/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
1515
steps:
1616
- name: Dependabot metadata
17-
uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b # v2.4.0
17+
uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0
1818
id: metadata
1919
- name: Checkout repository
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
2121
with:
2222
fetch-depth: 0
2323
- name: Abort if blocker files are changed

.github/workflows/ruby.yml

Lines changed: 17 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,29 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
ruby: ['3.1', '3.2', '3.3', '3.4', head]
16+
ruby: ['3.2', '3.3', '3.4', '4.0', head]
1717
rubyopt: [""]
1818
job:
1919
- test
2020
include:
2121
- ruby: head
2222
job: stdlib_test rubocop
23-
- ruby: "3.4"
23+
- ruby: "4.0"
2424
job: stdlib_test
25-
- ruby: "3.4"
25+
- ruby: "4.0"
2626
job: test
2727
rubyopt: "--enable-frozen-string-literal"
28-
- ruby: "3.4"
28+
- ruby: "4.0"
2929
job: stdlib_test
3030
rubyopt: "--enable-frozen-string-literal"
31-
- ruby: "3.4"
31+
- ruby: "4.0"
3232
job: rubocop validate test_doc build test_generate_stdlib raap
33-
- ruby: "3.4"
33+
- ruby: "4.0"
3434
job: typecheck_test
3535
env:
3636
RANDOMIZE_STDLIB_TEST_ORDER: "true"
3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v6
3939
- uses: ruby/setup-ruby@v1
4040
with:
4141
ruby-version: ${{ matrix.ruby }}
@@ -55,6 +55,10 @@ jobs:
5555
echo "NO_MINITEST=true" >> $GITHUB_ENV
5656
bundle config set --local without 'minitest'
5757
if: ${{ contains(matrix.ruby, 'head') }}
58+
- name: bundle config set force_ruby_platform true if head
59+
if: ${{ contains(matrix.ruby, 'head') }}
60+
run: |
61+
bundle config set force_ruby_platform true
5862
- name: Skip installing type checkers
5963
if: ${{ ! contains(matrix.job, 'typecheck_test') }}
6064
run: |
@@ -65,38 +69,14 @@ jobs:
6569
- name: Run test
6670
run: |
6771
bundle exec rake ${{ matrix.job }}
68-
valgrind:
69-
runs-on: ubuntu-latest
70-
steps:
71-
- uses: actions/checkout@v4
72-
- uses: ruby/setup-ruby@v1
73-
with:
74-
ruby-version: "3.4"
75-
bundler-cache: none
76-
- name: Set working directory as safe
77-
run: git config --global --add safe.directory $(pwd)
78-
- name: Install dependencies
79-
run: |
80-
sudo apt-get update
81-
sudo apt-get install -y libdb-dev curl autoconf automake m4 libtool python3 valgrind
82-
- name: Update rubygems & bundler
83-
run: |
84-
ruby -v
85-
gem update --system
86-
- name: bin/setup
87-
run: |
88-
bin/setup
89-
- run: bundle exec rake test:valgrind
90-
env:
91-
RUBY_FREE_AT_EXIT: 1
9272
C99_compile:
9373
runs-on: macos-latest
9474
strategy:
9575
fail-fast: false
9676
matrix:
97-
ruby: ['3.4', head]
77+
ruby: ['4.0', head]
9878
steps:
99-
- uses: actions/checkout@v4
79+
- uses: actions/checkout@v6
10080
- name: Install dependencies
10181
run: |
10282
brew install ruby-build
@@ -112,8 +92,11 @@ jobs:
11292
gem update --system
11393
- name: clang version
11494
run: clang --version
95+
- name: bundle config set force_ruby_platform true if head
96+
if: ${{ contains(matrix.ruby, 'head') }}
97+
run: |
98+
bundle config set force_ruby_platform true
11599
- name: bin/setup
116100
run: |
117101
bin/setup
118102
- run: bundle exec rake clean compile_c99
119-

.github/workflows/typecheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1717
- uses: ruby/setup-ruby@v1
1818
with:
19-
ruby-version: "3.3"
19+
ruby-version: "3.4"
2020
bundler: none
2121
- name: Set working directory as safe
2222
run: git config --global --add safe.directory $(pwd)

.github/workflows/valgrind.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Valgrind
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- "ext/**"
9+
- "include/**"
10+
- "src/**"
11+
pull_request:
12+
paths:
13+
- "ext/**"
14+
- "include/**"
15+
- "src/**"
16+
merge_group: {}
17+
18+
jobs:
19+
valgrind:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v6
23+
- uses: ruby/setup-ruby@v1
24+
with:
25+
ruby-version: "3.4"
26+
bundler-cache: none
27+
- name: Set working directory as safe
28+
run: git config --global --add safe.directory $(pwd)
29+
- name: Install dependencies
30+
run: |
31+
sudo apt-get update
32+
sudo apt-get install -y libdb-dev curl autoconf automake m4 libtool python3 valgrind
33+
- name: Update rubygems & bundler
34+
run: |
35+
ruby -v
36+
gem update --system
37+
- name: bin/setup
38+
run: |
39+
bin/setup
40+
- run: bundle exec rake test:valgrind
41+
env:
42+
RUBY_FREE_AT_EXIT: 1

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
ruby: ['3.2', '3.3', ucrt, mswin]
16+
ruby: ['3.4', ucrt, mswin]
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1919
- name: load ruby
2020
uses: ruby/setup-ruby@v1
2121
with:

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins:
33
- rubocop-on-rbs
44

55
AllCops:
6-
TargetRubyVersion: 3.1
6+
TargetRubyVersion: 3.4
77
DisabledByDefault: true
88
Exclude:
99
- 'vendor/bundle/**/*'

0 commit comments

Comments
 (0)