@@ -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 }}
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-
0 commit comments