简体   繁体   English

如何在 Windows 的 GitHub Actions 中拥有两个 Windows 驱动器“C:”和“D:”?

[英]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.

相关问题 如何在使用OpenGL的Windows上的同一应用程序内绘制两个单独的3D窗口? - How can I draw inside two separate 3D windows within the same application on Windows using OpenGL? Windows 是否可以对 Elixir 进行 Github 操作? - Is it possible to have Github Actions for Elixir with Windows? 如何使用Windows批处理命令一次在c,d,e驱动器的所有目录中搜索文件 - how to search file(s) in all the directories of c,d,e drives at a time using windows batch commands 如何在Windows中获取物理驱动器 - how to obtain physical drives in Windows 使用 github 操作在 Windows 上测试 Perl - Testing Perl on Windows with github actions Python 使用 Github 测试 Windows 上的操作 - Python testing with Github Actions on Windows 我怎样才能在 Windows 上安装 Tessaract? - How can i have Tessaract on Windows? 如何在 Windows 版本的 GitHub 操作上设置 Bakeware env vars? - How to set Bakeware env vars on GitHub Actions for a Windows release? 如何在 Github 操作上执行 MSI 文件(Windows 最新运行程序) - How to execute MSI file on Github Actions (windows-latest runner) 如何在 Windows 上可视化 GitHub 分支历史记录? - How can I visualize GitHub branch history on Windows?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM