mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0481980f17 |
@@ -165,6 +165,9 @@ export async function bundleInstall(gemfile, lockFile, platform, engine, rubyVer
|
|||||||
await exec.exec('bundle', ['lock'], envOptions)
|
await exec.exec('bundle', ['lock'], envOptions)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await core.group(`Print lockfile`, async () =>
|
||||||
|
await exec.exec('cat', [lockFile]))
|
||||||
|
|
||||||
// cache key
|
// cache key
|
||||||
const paths = [cachePath]
|
const paths = [cachePath]
|
||||||
const baseKey = await computeBaseKey(engine, rubyVersion, lockFile, cacheVersion)
|
const baseKey = await computeBaseKey(engine, rubyVersion, lockFile, cacheVersion)
|
||||||
|
|||||||
+3
-5
@@ -179,6 +179,9 @@ async function bundleInstall(gemfile, lockFile, platform, engine, rubyVersion, b
|
|||||||
await exec.exec('bundle', ['lock'], envOptions)
|
await exec.exec('bundle', ['lock'], envOptions)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await core.group(`Print lockfile`, async () =>
|
||||||
|
await exec.exec('cat', [lockFile]))
|
||||||
|
|
||||||
// cache key
|
// cache key
|
||||||
const paths = [cachePath]
|
const paths = [cachePath]
|
||||||
const baseKey = await computeBaseKey(engine, rubyVersion, lockFile, cacheVersion)
|
const baseKey = await computeBaseKey(engine, rubyVersion, lockFile, cacheVersion)
|
||||||
@@ -85343,11 +85346,6 @@ async function setupRuby(options = {}) {
|
|||||||
if (inputs['bundler-cache'] === 'true') {
|
if (inputs['bundler-cache'] === 'true') {
|
||||||
await common.time('bundle install', async () =>
|
await common.time('bundle install', async () =>
|
||||||
bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version']))
|
bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version']))
|
||||||
|
|
||||||
if (lockFile !== null && fs.existsSync(lockFile)) {
|
|
||||||
await core.group(`Print lockfile`, async () =>
|
|
||||||
await exec.exec('cat', [lockFile]))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
core.setOutput('ruby-prefix', rubyPrefix)
|
core.setOutput('ruby-prefix', rubyPrefix)
|
||||||
|
|||||||
@@ -99,11 +99,6 @@ export async function setupRuby(options = {}) {
|
|||||||
if (inputs['bundler-cache'] === 'true') {
|
if (inputs['bundler-cache'] === 'true') {
|
||||||
await common.time('bundle install', async () =>
|
await common.time('bundle install', async () =>
|
||||||
bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version']))
|
bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version']))
|
||||||
|
|
||||||
if (lockFile !== null && fs.existsSync(lockFile)) {
|
|
||||||
await core.group(`Print lockfile`, async () =>
|
|
||||||
await exec.exec('cat', [lockFile]))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
core.setOutput('ruby-prefix', rubyPrefix)
|
core.setOutput('ruby-prefix', rubyPrefix)
|
||||||
|
|||||||
Reference in New Issue
Block a user