[英]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:
.我想使用runs-on: windows-latest
在 GitHub Action 中执行自动化测试,对于该测试,我需要有两个不同的可用设备,例如C:
和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 ")由于 windows-latest 映像可能没有驱动器D:\\
,请检查您的 GitHub Action 脚本是否可以使用windows 命令subst
(如“ 如何将本地文件夹映射到 Windows 中的驱动器号”)
subst D: C:\Folder\Example
That way, you get your C:\\
and your D:\\
drives.这样,您就可以获得C:\\
和D:\\
驱动器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.