Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
lich0821 committed Nov 2, 2024
1 parent 8f46f56 commit 434b0d3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/Build-WeChatFerry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,22 @@ jobs:
.\vcpkg\bootstrap-vcpkg.bat
# 设置 VCPKG_ROOT 环境变量
setx VCPKG_ROOT "C:/Tools/vcpkg" /M
echo "VCPKG_ROOT=C:/Tools/vcpkg" >> $GITHUB_ENV
$env:VCPKG_ROOT = 'C:/Tools/vcpkg'
# 将 vcpkg 与 Visual Studio 集成
C:/Tools/vcpkg/vcpkg integrate install
# 返回到项目目录并安装依赖
cd ${{ github.workspace }}
vcpkg install --triplet x64-windows
# 将 vcpkg 与 Visual Studio 集成
vcpkg integrate install
C:/Tools/vcpkg/vcpkg install --triplet x64-windows-static
- name: 解析并构建配置
run: |
$configurations = "Release,Debug".Split(',')
foreach ($config in $configurations) {
Write-Host "Building configuration: $config"
msbuild WeChatFerry/WeChatFerry.sln /p:Configuration=$config /p:Platform="x64" /verbosity:minimal
msbuild WeChatFerry/WeChatFerry.sln /p:Configuration=$config /p:Platform="x64" /p:VcpkgTriplet="x64-windows-static" /p:VcpkgEnableManifest=true /verbosity:minimal
}
shell: pwsh

Expand Down

0 comments on commit 434b0d3

Please sign in to comment.