Skip to content

Commit 002b15e

Browse files
committed
Add support for ruby master debug builds
1 parent e5857db commit 002b15e

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ jobs:
1515
matrix:
1616
os: [ ubuntu, macos, windows ]
1717
# Use various version syntax here for testing
18-
ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6.6, 2.7, ruby-head, jruby-9.1, jruby, jruby-head, truffleruby, truffleruby-head ]
18+
ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6.6, 2.7, ruby-head, ruby-debug, jruby-9.1, jruby, jruby-head, truffleruby, truffleruby-head ]
1919
include:
2020
- { os: ubuntu, ruby: rubinius }
2121
- { os: windows, ruby: mingw }
2222
- { os: windows, ruby: mswin }
2323
exclude:
24+
- { os: windows, ruby: ruby-debug }
2425
- { os: windows, ruby: truffleruby }
2526
- { os: windows, ruby: truffleruby-head }
2627

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ This action currently supports these versions of MRI, JRuby and TruffleRuby:
1414

1515
| Interpreter | Versions |
1616
| ----------- | -------- |
17-
| Ruby | 2.2, 2.3.0 - 2.3.8, 2.4.0 - 2.4.10, 2.5.0 - 2.5.8, 2.6.0 - 2.6.6, 2.7.1, head, mingw, mswin |
17+
| Ruby | 2.2, 2.3.0 - 2.3.8, 2.4.0 - 2.4.10, 2.5.0 - 2.5.8, 2.6.0 - 2.6.6, 2.7.1, head, debug, mingw, mswin |
1818
| JRuby | 9.1.17.0, 9.2.9.0 - 9.2.11.1, head |
1919
| TruffleRuby | 19.3.0 - 20.0.0, head |
2020
| Rubinius | 4.14 |
2121

22+
`ruby-debug` is the same as `ruby-head` but with assertions enabled (`-DRUBY_DEBUG=1`).
2223
On Windows, `mingw` and `mswin` are `ruby-head` builds using the MSYS2/MinGW and the MSVC toolchains respectively.
2324

2425
Ruby 2.2 resolves to 2.2.6 on Windows (last build from RubyInstaller) and 2.2.10 otherwise.

common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function measure(name, block) {
1717
}
1818

1919
export function isHeadVersion(rubyVersion) {
20-
return rubyVersion === 'head' || rubyVersion === 'mingw' || rubyVersion === 'mswin'
20+
return rubyVersion === 'head' || rubyVersion === 'debug' || rubyVersion === 'mingw' || rubyVersion === 'mswin'
2121
}
2222

2323
export function getVirtualEnvironmentName() {

dist/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ruby-builder-versions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function getVersions(platform) {
77
"2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.5.4", "2.5.5", "2.5.6", "2.5.7", "2.5.8",
88
"2.6.0", "2.6.1", "2.6.2", "2.6.3", "2.6.4", "2.6.5", "2.6.6",
99
"2.7.0", "2.7.1",
10-
"head"
10+
"head", "debug",
1111
],
1212
"jruby": [
1313
"9.1.17.0",

ruby-builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ function getDownloadURL(platform, engine, version) {
5050
}
5151

5252
function getLatestHeadBuildURL(platform, engine, version) {
53-
return `https://github.com/ruby/${engine}-dev-builder/releases/latest/download/${engine}-head-${platform}.tar.gz`
53+
return `https://github.com/ruby/${engine}-dev-builder/releases/latest/download/${engine}-${version}-${platform}.tar.gz`
5454
}

0 commit comments

Comments
 (0)