mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 22:44:20 +02:00
Use SSD drive for Windows Ruby location
This commit is contained in:
+4
-2
@@ -4826,9 +4826,11 @@ async function install(platform, ruby) {
|
||||
}
|
||||
const base = url.slice(url.lastIndexOf('/') + 1, url.length - '.7z'.length)
|
||||
|
||||
const drv = (process.env['GITHUB_WORKSPACE'] || 'C')[0]
|
||||
|
||||
const downloadPath = await tc.downloadTool(url)
|
||||
await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -oC:\\`)
|
||||
const rubyPrefix = `C:\\${base}`
|
||||
await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -o${drv}:\\`)
|
||||
const rubyPrefix = `${drv}:\\${base}`
|
||||
|
||||
const [hostedRuby, msys2] = await linkMSYS2()
|
||||
const newPath = setupPath(msys2, rubyPrefix)
|
||||
|
||||
Reference in New Issue
Block a user