Use SSD drive for Windows Ruby location

This commit is contained in:
MSP-Greg
2020-01-30 22:15:28 +01:00
committed by Benoit Daloze
parent 5dd450999e
commit 4d7199dbd0
2 changed files with 8 additions and 4 deletions
Generated Vendored
+4 -2
View File
@@ -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)