作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在调用.\build.ps1
,它似乎挂起了:
https://github.com/nblockchain/ZXing.Net.Xamarin/runs/232358091
我需要一些特别的东西吗?在AzureDevOps中,这是开箱即用的。
最佳答案
正如评论中所同意的那样,解决此问题的方法是指定要在您的Action文件中运行的shell。在您的情况下,您必须更改以下内容:
- name: Build
run: |
.\build.ps1
- name: Build
shell: pwsh
run: |
.\build.ps1
shell
参数的可用值的更多详细信息,请引用
documentation。
关于powershell - 如何使用GithubActions工作流调用PowerShell脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58061430/
我正在尝试使用 GithubActions 工作流(标记为 windows-latest)生成的 WindowsVM 构建 Xamarin.Android 库,但收到此错误: C:\Program F
我是一名优秀的程序员,十分优秀!