Skip to content

Commit 001fd1b

Browse files
committed
Document the choice of the drive on Windows
1 parent 4d7199d commit 001fd1b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

dist/index.js

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

windows.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ 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]
28+
// Extract to SSD, see https://github.com/eregon/use-ruby-action/pull/14
29+
const drive = (process.env['GITHUB_WORKSPACE'] || 'C')[0]
2930

3031
const downloadPath = await tc.downloadTool(url)
31-
await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -o${drv}:\\`)
32-
const rubyPrefix = `${drv}:\\${base}`
32+
await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -o${drive}:\\`)
33+
const rubyPrefix = `${drive}:\\${base}`
3334

3435
const [hostedRuby, msys2] = await linkMSYS2()
3536
const newPath = setupPath(msys2, rubyPrefix)

0 commit comments

Comments
 (0)