GitHub Actions支持的SHELL
发布日期:2021-05-08 06:01:48 浏览次数:22 分类:原创文章

本文共 1056 字,大约阅读时间需要 3 分钟。

欢迎来访我的个人博客:

All bash The default shell on non-Windows platforms with a fallback to sh. When specifying a bash shell on Windows, the bash shell included with Git for Windows is used. bash --noprofile --norc -eo pipefail {0}
All pwsh The PowerShell Core. GitHub appends the extension .ps1 to your script name. pwsh -command ". '{0}'"
All python Executes the python command. python {0}
Linux / macOS sh The fallback behavior for non-Windows platforms if no shell is provided and bash is not found in the path. sh -e {0}
Windows cmd GitHub appends the extension .cmd to your script name and substitutes for {0}. %ComSpec% /D /E:ON /V:OFF /S /C "CALL "{0}"".
Windows pwsh This is the default shell used on Windows. The PowerShell Core. GitHub appends the extension .ps1 to your script name. If your self-hosted Windows runner does not have PowerShell Core installed, then PowerShell Desktop is used instead. pwsh -command ". '{0}'".
Windows powershell The PowerShell Desktop. GitHub appends the extension .ps1 to your script name. powershell -command ". '{0}'".
上一篇:C++ 习题(2021.05.05)
下一篇:Ubuntu 18.04通过deb安装cuda 10.2

发表评论

最新留言

很好
[***.229.124.182]2025年04月05日 03时24分58秒