Fix mkdir

This commit is contained in:
Changhua 2024-11-02 12:58:01 +08:00
parent edf8974785
commit 91bd5cd817

View File

@ -52,11 +52,13 @@ jobs:
- name: 安装 vcpkg 并初始化依赖项
run: |
# 设置 vcpkg 目录
mkdir -p C:/Tools
if (!(Test-Path -Path 'C:/Tools')) {
New-Item -ItemType Directory -Force -Path 'C:/Tools'
}
cd C:/Tools
# 克隆并引导 vcpkg
git clone https://github.com/microsoft/vcpkg
git clone https://github.com/microsoft/vcpkg || echo "vcpkg already cloned"
.\vcpkg\bootstrap-vcpkg.bat
# 设置 VCPKG_ROOT 环境变量