简体   繁体   中英

How can I have two windows drives `C:` and `D:` within GitHub Actions in windows?

I want to execute an automated test within a GitHub Action using runs-on: windows-latest and for that test I need to have two different usable devices, for example C: and D: . How can I achieve this?

Since the windows-latest image is likely to not have a drive D:\\ , check if your GitHub Action script can use the windows command subst (as in " How to map a local folder to a drive letter in Windows ")

subst D: C:\Folder\Example

That way, you get your C:\\ and your D:\\ drives.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM