Add Env, minimal verbosity
This commit is contained in:
parent
6214fa8b68
commit
14cf7f2793
15
.github/workflows/Build-WeChatFerry.yml
vendored
15
.github/workflows/Build-WeChatFerry.yml
vendored
@ -58,25 +58,28 @@ jobs:
|
|||||||
cd C:/Tools
|
cd C:/Tools
|
||||||
|
|
||||||
# 克隆并引导 vcpkg
|
# 克隆并引导 vcpkg
|
||||||
git clone https://github.com/microsoft/vcpkg || echo "vcpkg already cloned"
|
if (!(Test-Path -Path 'C:/Tools/vcpkg')) {
|
||||||
|
git clone https://github.com/microsoft/vcpkg
|
||||||
|
}
|
||||||
.\vcpkg\bootstrap-vcpkg.bat
|
.\vcpkg\bootstrap-vcpkg.bat
|
||||||
|
|
||||||
# 设置 VCPKG_ROOT 环境变量
|
# 设置 VCPKG_ROOT 环境变量
|
||||||
|
setx VCPKG_ROOT "C:/Tools/vcpkg" /M
|
||||||
echo "VCPKG_ROOT=C:/Tools/vcpkg" >> $GITHUB_ENV
|
echo "VCPKG_ROOT=C:/Tools/vcpkg" >> $GITHUB_ENV
|
||||||
|
|
||||||
# 将 vcpkg 与 Visual Studio 集成
|
|
||||||
.\vcpkg\vcpkg integrate install
|
|
||||||
|
|
||||||
# 返回到项目目录并安装依赖
|
# 返回到项目目录并安装依赖
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
C:/Tools/vcpkg/vcpkg install --triplet x64-windows
|
vcpkg install --triplet x64-windows
|
||||||
|
|
||||||
|
# 将 vcpkg 与 Visual Studio 集成
|
||||||
|
vcpkg integrate install
|
||||||
|
|
||||||
- name: 解析并构建配置
|
- name: 解析并构建配置
|
||||||
run: |
|
run: |
|
||||||
$configurations = "Release,Debug".Split(',')
|
$configurations = "Release,Debug".Split(',')
|
||||||
foreach ($config in $configurations) {
|
foreach ($config in $configurations) {
|
||||||
Write-Host "Building configuration: $config"
|
Write-Host "Building configuration: $config"
|
||||||
msbuild WeChatFerry/WeChatFerry.sln /p:Configuration=$config /p:Platform="x64" /verbosity:detailed
|
msbuild WeChatFerry/WeChatFerry.sln /p:Configuration=$config /p:Platform="x64" /verbosity:minimal
|
||||||
}
|
}
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user