Fix errors on ruby 2.6 or earliers #1
ci.yml
on: push
ruby-versions
/
Generate Ruby versions
4s
Matrix: host
Annotations
20 errors
|
macos-latest 2.3
Error: CRuby < 2.6 does not support macos-arm64.
Either use a newer Ruby version or use a macOS image running on amd64, e.g., macos-15-intel.
Note that GitHub changed the meaning of macos-latest from macos-12 (amd64) to macos-14 (arm64):
https://github.blog/changelog/2024-04-01-macos-14-sonoma-is-generally-available-and-the-latest-macos-runner-image/
If you are using a matrix of Ruby versions, a good solution is to run only < 2.6 on amd64, like so:
matrix:
ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
os: [ ubuntu-latest, macos-latest ]
# CRuby < 2.6 does not support macos-arm64, so test those on amd64 instead
exclude:
- { os: macos-latest, ruby: '2.4' }
- { os: macos-latest, ruby: '2.5' }
include:
- { os: macos-15-intel, ruby: '2.4' }
- { os: macos-15-intel, ruby: '2.5' }
But of course you should consider dropping support for these long-EOL Rubies, which cannot even be built on recent macOS machines.
at validateRubyEngineAndVersion (/Users/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:92670:11)
at setupRuby (/Users/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:92560:15)
at run (/Users/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:92518:11)
at /Users/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:92722:40
at /Users/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:92724:3
at Object.<anonymous> (/Users/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:92727:12)
at Module._compile (node:internal/modules/cjs/loader:1871:14)
at Object..js (node:internal/modules/cjs/loader:2002:10)
at Module.load (node:internal/modules/cjs/loader:1594:32)
at Module._load (node:internal/modules/cjs/loader:1396:12)
|
|
windows-latest truffleruby
Error: TruffleRuby does not currently support Windows.
at validateRubyEngineAndVersion (D:\a\_actions\ruby\setup-ruby\v1\dist\index.js:92689:11)
at setupRuby (D:\a\_actions\ruby\setup-ruby\v1\dist\index.js:92560:15)
at run (D:\a\_actions\ruby\setup-ruby\v1\dist\index.js:92518:11)
at D:\a\_actions\ruby\setup-ruby\v1\dist\index.js:92722:40
at D:\a\_actions\ruby\setup-ruby\v1\dist\index.js:92724:3
at Object.<anonymous> (D:\a\_actions\ruby\setup-ruby\v1\dist\index.js:92727:12)
at Module._compile (node:internal/modules/cjs/loader:1871:14)
at Object..js (node:internal/modules/cjs/loader:2002:10)
at Module.load (node:internal/modules/cjs/loader:1594:32)
at Module._load (node:internal/modules/cjs/loader:1396:12)
|
|
ubuntu-latest 2.3
Process completed with exit code 1.
|
|
Error:
test/test_core_assertions.rb#L19
NoMethodError: undefined method `match?' for /\/(?:lib\/test\/|core_assertions\.rb:)/:Regexp
/home/runner/work/test-unit-ruby-core/test-unit-ruby-core/lib/core_assertions.rb:21:in `block in filter'
/home/runner/work/test-unit-ruby-core/test-unit-ruby-core/lib/core_assertions.rb:20:in `each'
/home/runner/work/test-unit-ruby-core/test-unit-ruby-core/lib/core_assertions.rb:20:in `filter'
/home/runner/work/test-unit-ruby-core/test-unit-ruby-core/lib/core_assertions.rb:38:in `filter_backtrace'
/home/runner/work/test-unit-ruby-core/test-unit-ruby-core/test/test_core_assertions.rb:19:in `test_backtrace_filter_removes_internal_entries'
|
|
ubuntu-latest truffleruby
Process completed with exit code 1.
|
|
Failure:
test/test_find_executable.rb#L18
<["/home/runner/.rubies/truffleruby-34.0.1/bin/truffleruby", "--version"]> expected but was
<nil>.
|
|
macos-latest jruby-head
Process completed with exit code 1.
|
|
macos-latest truffleruby
Process completed with exit code 1.
|
|
Failure:
test/test_find_executable.rb#L18
<["/Users/runner/.rubies/truffleruby-34.0.1/bin/truffleruby", "--version"]> expected but was
<nil>.
|
|
macos-latest jruby
Process completed with exit code 1.
|
|
ubuntu-latest jruby-head
Process completed with exit code 1.
|
|
Error:
test/test_find_executable.rb#L24
NoMethodError: undefined method 'split' for nil
/home/runner/work/test-unit-ruby-core/test-unit-ruby-core/lib/find_executable.rb:6:in 'find_executable'
/home/runner/work/test-unit-ruby-core/test-unit-ruby-core/test/test_find_executable.rb:24:in 'test_find_executable_returns_nil_for_unknown_command'
org/jruby/RubyKernel.java:1604:in 'catch'
org/jruby/RubyKernel.java:1599:in 'catch'
org/jruby/RubyArrayNative.java:1729:in 'each'
org/jruby/RubyArrayNative.java:1729:in 'each'
org/jruby/RubyKernel.java:1604:in 'catch'
org/jruby/RubyKernel.java:1599:in 'catch'
|
|
Error:
test/test_find_executable.rb#L14
NoMethodError: undefined method 'split' for nil
/home/runner/work/test-unit-ruby-core/test-unit-ruby-core/lib/find_executable.rb:6:in 'find_executable'
/home/runner/work/test-unit-ruby-core/test-unit-ruby-core/test/test_find_executable.rb:14:in 'test_find_executable_returns_command_and_arguments'
org/jruby/RubyKernel.java:1604:in 'catch'
org/jruby/RubyKernel.java:1599:in 'catch'
org/jruby/RubyArrayNative.java:1729:in 'each'
org/jruby/RubyArrayNative.java:1729:in 'each'
org/jruby/RubyKernel.java:1604:in 'catch'
org/jruby/RubyKernel.java:1599:in 'catch'
|
|
ubuntu-latest jruby
Process completed with exit code 1.
|
|
Error:
test/test_find_executable.rb#L24
NoMethodError: undefined method 'split' for nil
/home/runner/work/test-unit-ruby-core/test-unit-ruby-core/lib/find_executable.rb:6:in 'find_executable'
/home/runner/work/test-unit-ruby-core/test-unit-ruby-core/test/test_find_executable.rb:24:in 'test_find_executable_returns_nil_for_unknown_command'
org/jruby/RubyKernel.java:1598:in 'catch'
org/jruby/RubyKernel.java:1593:in 'catch'
org/jruby/RubyArrayNative.java:1729:in 'each'
org/jruby/RubyArrayNative.java:1729:in 'each'
org/jruby/RubyKernel.java:1598:in 'catch'
org/jruby/RubyKernel.java:1593:in 'catch'
|
|
Error:
test/test_find_executable.rb#L14
NoMethodError: undefined method 'split' for nil
/home/runner/work/test-unit-ruby-core/test-unit-ruby-core/lib/find_executable.rb:6:in 'find_executable'
/home/runner/work/test-unit-ruby-core/test-unit-ruby-core/test/test_find_executable.rb:14:in 'test_find_executable_returns_command_and_arguments'
org/jruby/RubyKernel.java:1598:in 'catch'
org/jruby/RubyKernel.java:1593:in 'catch'
org/jruby/RubyArrayNative.java:1729:in 'each'
org/jruby/RubyArrayNative.java:1729:in 'each'
org/jruby/RubyKernel.java:1598:in 'catch'
org/jruby/RubyKernel.java:1593:in 'catch'
|
|
windows-latest 2.3
Process completed with exit code 1.
|
|
Error:
test/test_core_assertions.rb#L19
NoMethodError: undefined method `match?' for /\/(?:lib\/test\/|core_assertions\.rb:)/:Regexp
D:/a/test-unit-ruby-core/test-unit-ruby-core/lib/core_assertions.rb:21:in `block in filter'
D:/a/test-unit-ruby-core/test-unit-ruby-core/lib/core_assertions.rb:20:in `each'
D:/a/test-unit-ruby-core/test-unit-ruby-core/lib/core_assertions.rb:20:in `filter'
D:/a/test-unit-ruby-core/test-unit-ruby-core/lib/core_assertions.rb:38:in `filter_backtrace'
D:/a/test-unit-ruby-core/test-unit-ruby-core/test/test_core_assertions.rb:19:in `test_backtrace_filter_removes_internal_entries'
|
|
windows-latest jruby-head
Process completed with exit code 1.
|
|
windows-latest jruby
Process completed with exit code 1.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
gem
|
16.8 KB |
sha256:da559c5f1e8b53eef326c34e658ce7c6d6624cc07966a450553f7f58d0af776b
|
|