[GitHub CI] Update build.yml

This commit is contained in:
Connection Refused
2021-10-15 02:01:06 +08:00
parent 934ae60691
commit 4b997f3fa4
4 changed files with 10 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ on: [push, pull_request]
jobs:
build:
name: Build
runs-on: windows-latest
runs-on: windows-2022
steps:
- name: Go
uses: actions/setup-go@v2
@@ -26,6 +26,8 @@ jobs:
- name: MSBuild
uses: microsoft/setup-msbuild@v1.0.3
with:
vs-prerelease: true
- name: Checkout
uses: actions/checkout@v2

View File

@@ -7,7 +7,7 @@ on:
jobs:
build:
name: Build
runs-on: windows-latest
runs-on: windows-2022
steps:
- name: Go
uses: actions/setup-go@v2
@@ -29,6 +29,8 @@ jobs:
- name: MSBuild
uses: microsoft/setup-msbuild@v1.0.3
with:
vs-prerelease: true
- name: Checkout
uses: actions/checkout@v2

View File

@@ -21,13 +21,13 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>

View File

@@ -21,13 +21,13 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>