TruffleRuby correctly changes the ABI version now

This commit is contained in:
Benoit Daloze
2021-10-05 16:51:03 +02:00
parent ac03cb7d18
commit c84889b9b9
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -183,7 +183,8 @@ async function computeBaseKey(platform, engine, version, lockFile, cacheVersion)
const cacheVersionSuffix = DEFAULT_CACHE_VERSION === cacheVersion ? '' : `-cachever:${cacheVersion}`
let key = `setup-ruby-bundler-cache-v3-${platform}-${engine}-${version}${cacheVersionSuffix}`
if (engine !== 'jruby' && common.isHeadVersion(version)) {
if (engine === 'ruby' && common.isHeadVersion(version)) {
// CRuby dev versions do not change the ABI version when the ABI changes, so append the commit to the ABI version
let revision = '';
await exec.exec('ruby', ['-e', 'print RUBY_REVISION'], {
silent: true,