Skip to content

Commit

Permalink
TruffleRuby correctly changes the ABI version now
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 5, 2021
1 parent ac03cb7 commit c84889b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c84889b

Please sign in to comment.