Merge pull request #175 from KenGrofork/patch-4
FIX: Modify to run using default configuration
This commit is contained in:
commit
f82c5869c0
41
.github/workflows/Build-WeChatFerry.yml
vendored
41
.github/workflows/Build-WeChatFerry.yml
vendored
@ -5,20 +5,20 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
# inputs:
|
||||||
use_cache:
|
# use_cache:
|
||||||
description: '是否使用缓存'
|
# description: '是否使用缓存'
|
||||||
required: true
|
# required: true
|
||||||
default: 'yes'
|
# default: 'yes'
|
||||||
type: choice
|
# type: choice
|
||||||
options:
|
# options:
|
||||||
- 'yes'
|
# - 'yes'
|
||||||
- 'no'
|
# - 'no'
|
||||||
build_configurations:
|
# build_configurations:
|
||||||
description: '编译配置(使用逗号分隔多个配置)'
|
# description: '编译配置(使用逗号分隔多个配置)'
|
||||||
required: true
|
# required: true
|
||||||
default: 'Release,Debug'
|
# default: 'Release,Debug'
|
||||||
type: string
|
# type: string
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -29,10 +29,10 @@ jobs:
|
|||||||
- name: 检出代码
|
- name: 检出代码
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 设置默认值
|
# - name: 设置默认值
|
||||||
run: |
|
# run: |
|
||||||
echo "USE_CACHE=${{ github.event.inputs.use_cache || 'yes' }}" >> $GITHUB_ENV
|
# echo "USE_CACHE=${{ github.event.inputs.use_cache || 'yes' }}" >> $GITHUB_ENV
|
||||||
echo "BUILD_CONFIGS=${{ github.event.inputs.build_configurations || 'Release,Debug' }}" >> $GITHUB_ENV
|
# echo "BUILD_CONFIGS=${{ github.event.inputs.build_configurations || 'Release,Debug' }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: 获取版本号和微信版本号
|
- name: 获取版本号和微信版本号
|
||||||
run: |
|
run: |
|
||||||
@ -61,7 +61,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 设置缓存
|
- name: 设置缓存
|
||||||
id: cache-dependencies
|
id: cache-dependencies
|
||||||
if: github.event.inputs.use_cache == 'yes'
|
# if: github.event.inputs.use_cache == 'yes'
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
@ -89,7 +89,8 @@ jobs:
|
|||||||
|
|
||||||
- name: 解析并构建配置
|
- name: 解析并构建配置
|
||||||
run: |
|
run: |
|
||||||
$configurations = "${{ github.event.inputs.build_configurations }}".Split(',')
|
# $configurations = "${{ github.event.inputs.build_configurations }}".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:detailed
|
||||||
|
Loading…
Reference in New Issue
Block a user