ci(docker): 更新工作流以兼容不同运行环境
修改 MinGW 安装脚本以同时支持 GitHub runner 和自托管容器 将 libcore 复制步骤的 shell 从 pwsh 改为 powershell
This commit is contained in:
parent
ca74f9289e
commit
bfa3ec48d6
@ -39,6 +39,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 🔧 安装 MinGW
|
- name: 🔧 安装 MinGW
|
||||||
run: |
|
run: |
|
||||||
|
# 在 GitHub 托管 runner(有 sudo)与 act/自托管容器(无 sudo)均可运行
|
||||||
if command -v sudo >/dev/null 2>&1; then
|
if command -v sudo >/dev/null 2>&1; then
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y mingw-w64
|
sudo apt-get install -y mingw-w64
|
||||||
@ -127,7 +128,7 @@ jobs:
|
|||||||
path: .
|
path: .
|
||||||
|
|
||||||
- name: 🔧 复制 libcore 文件到正确位置并重命名
|
- name: 🔧 复制 libcore 文件到正确位置并重命名
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
Write-Host "📋 复制 libcore 文件..."
|
Write-Host "📋 复制 libcore 文件..."
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user