Skip to content

Commit 4d7199d

Browse files
MSP-Gregeregon
authored andcommitted
Use SSD drive for Windows Ruby location
1 parent 5dd4509 commit 4d7199d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

dist/index.js

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

windows.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ export async function install(platform, ruby) {
2525
}
2626
const base = url.slice(url.lastIndexOf('/') + 1, url.length - '.7z'.length)
2727

28+
const drv = (process.env['GITHUB_WORKSPACE'] || 'C')[0]
29+
2830
const downloadPath = await tc.downloadTool(url)
29-
await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -oC:\\`)
30-
const rubyPrefix = `C:\\${base}`
31+
await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -o${drv}:\\`)
32+
const rubyPrefix = `${drv}:\\${base}`
3133

3234
const [hostedRuby, msys2] = await linkMSYS2()
3335
const newPath = setupPath(msys2, rubyPrefix)

0 commit comments

Comments
 (0)