Skip to content

Commit c84889b

Browse files
committed
TruffleRuby correctly changes the ABI version now
1 parent ac03cb7 commit c84889b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bundler.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ async function computeBaseKey(platform, engine, version, lockFile, cacheVersion)
183183
const cacheVersionSuffix = DEFAULT_CACHE_VERSION === cacheVersion ? '' : `-cachever:${cacheVersion}`
184184
let key = `setup-ruby-bundler-cache-v3-${platform}-${engine}-${version}${cacheVersionSuffix}`
185185

186-
if (engine !== 'jruby' && common.isHeadVersion(version)) {
186+
if (engine === 'ruby' && common.isHeadVersion(version)) {
187+
// CRuby dev versions do not change the ABI version when the ABI changes, so append the commit to the ABI version
187188
let revision = '';
188189
await exec.exec('ruby', ['-e', 'print RUBY_REVISION'], {
189190
silent: true,

dist/index.js

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

0 commit comments

Comments
 (0)