diff --git a/dist/index.js b/dist/index.js index bb52da8..35fa42b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4826,11 +4826,12 @@ async function install(platform, ruby) { } const base = url.slice(url.lastIndexOf('/') + 1, url.length - '.7z'.length) - const drv = (process.env['GITHUB_WORKSPACE'] || 'C')[0] + // Extract to SSD, see https://github.com/eregon/use-ruby-action/pull/14 + const drive = (process.env['GITHUB_WORKSPACE'] || 'C')[0] const downloadPath = await tc.downloadTool(url) - await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -o${drv}:\\`) - const rubyPrefix = `${drv}:\\${base}` + await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -o${drive}:\\`) + const rubyPrefix = `${drive}:\\${base}` const [hostedRuby, msys2] = await linkMSYS2() const newPath = setupPath(msys2, rubyPrefix) diff --git a/windows.js b/windows.js index dd63ead..4c70afd 100644 --- a/windows.js +++ b/windows.js @@ -25,11 +25,12 @@ export async function install(platform, ruby) { } const base = url.slice(url.lastIndexOf('/') + 1, url.length - '.7z'.length) - const drv = (process.env['GITHUB_WORKSPACE'] || 'C')[0] + // Extract to SSD, see https://github.com/eregon/use-ruby-action/pull/14 + const drive = (process.env['GITHUB_WORKSPACE'] || 'C')[0] const downloadPath = await tc.downloadTool(url) - await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -o${drv}:\\`) - const rubyPrefix = `${drv}:\\${base}` + await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -o${drive}:\\`) + const rubyPrefix = `${drive}:\\${base}` const [hostedRuby, msys2] = await linkMSYS2() const newPath = setupPath(msys2, rubyPrefix)