From 91bd5cd817677f24e14a66cb0d9167197e9c08d2 Mon Sep 17 00:00:00 2001 From: Changhua Date: Sat, 2 Nov 2024 12:58:01 +0800 Subject: [PATCH] Fix mkdir --- .github/workflows/Build-WeChatFerry.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Build-WeChatFerry.yml b/.github/workflows/Build-WeChatFerry.yml index 79a93f3..ff42865 100644 --- a/.github/workflows/Build-WeChatFerry.yml +++ b/.github/workflows/Build-WeChatFerry.yml @@ -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 环境变量