Fix error

This commit is contained in:
KenGrofork 2024-07-04 22:31:54 +08:00 committed by GitHub
parent 94e1fef820
commit 88c39ebe00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,11 +13,6 @@ jobs:
- name: 检出代码
uses: actions/checkout@v4
- name: 设置默认值
run: |
echo "USE_CACHE=yes" >> $GITHUB_ENV
echo "BUILD_CONFIGS=Release,Debug" >> $GITHUB_ENV
- name: 获取版本号和微信版本号
run: |
$version = (Select-String -Path "WeChatFerry/spy/spy.rc" -Pattern 'VALUE "FileVersion", "(.*)"').Matches.Groups[1].Value.Trim()
@ -45,7 +40,6 @@ jobs:
- name: 设置缓存
id: cache-dependencies
# if: github.event.inputs.use_cache == 'yes'
uses: actions/cache@v4
with:
path: |
@ -69,12 +63,10 @@ jobs:
- name: 解析并构建配置
run: |
# $configurations = "${{ github.event.inputs.build_configurations }}".Split(',')
$configurations = "Release,Debug".Split(',')
foreach ($config in $configurations) {
Write-Host "Building configuration: $config"
msbuild WeChatFerry/WeChatFerry.sln /p:Configuration=$config /p:Platform="x64" /verbosity:detailed
}
shell: pwsh