Skip to content

Commit 07f9320

Browse files
committed
ランナーをwindows2022に更新
1 parent bd73d6c commit 07f9320

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

.github/workflows/msbuild.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ env:
2121
# You can convert this to a build matrix if you need coverage of multiple configuration types.
2222
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
2323
BUILD_CONFIGURATION: Release
24+
PLATFORM_TOOLSET: v143
25+
PLATFORM_VERSION: 10.0.22621.0
2426

2527
permissions:
2628
contents: read
@@ -30,7 +32,7 @@ jobs:
3032
strategy:
3133
matrix:
3234
PLATFORM_TARGET: [x64, x86]
33-
runs-on: windows-2019
35+
runs-on: windows-2022
3436

3537
steps:
3638
- uses: actions/checkout@v4
@@ -39,20 +41,22 @@ jobs:
3941
uses: microsoft/setup-msbuild@v2
4042

4143
- name: Build
42-
working-directory: ${{env.GITHUB_WORKSPACE}}
44+
working-directory: ${{ env.GITHUB_WORKSPACE }}
4345
# Add additional options to the MSBuild command line here (like platform or verbosity level).
4446
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
45-
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=${{matrix.PLATFORM_TARGET}} ${{env.SOLUTION_FILE_PATH}}
47+
shell: cmd
48+
run: |
49+
msbuild ${{ env.SOLUTION_FILE_PATH }} -m -t:build -p:Configuration=${{ env.BUILD_CONFIGURATION }};Platform=${{ matrix.PLATFORM_TARGET }} -p:WindowsTargetPlatformVersion=${{ env.PLATFORM_VERSION }}
4650
4751
- name: tar
48-
working-directory: ${{env.GITHUB_WORKSPACE}}
49-
run: |
50-
tar -jcvf CKS_${{matrix.PLATFORM_TARGET}}.tar.bz2 ./bin/*-${{env.BUILD_CONFIGURATION}}
52+
working-directory: ${{ env.GITHUB_WORKSPACE }}
5153
shell: bash
54+
run: |
55+
tar -jcvf CKS_${{ matrix.PLATFORM_TARGET }}.tar.bz2 ./bin/*-${{ env.BUILD_CONFIGURATION }}
5256
5357
# Upload package: https://github.com/marketplace/actions/upload-artifact
5458
- name: Upload artifacts
5559
uses: actions/upload-artifact@v4
5660
with:
57-
name: Windows10-CustomKernelSigners ${{matrix.PLATFORM_TARGET}} ${{env.BUILD_CONFIGURATION}} build
58-
path: CKS_${{matrix.PLATFORM_TARGET}}.tar.bz2
61+
name: Windows10-CustomKernelSigners ${{ matrix.PLATFORM_TARGET }} ${{ env.BUILD_CONFIGURATION }} build
62+
path: CKS_${{ matrix.PLATFORM_TARGET }}.tar.bz2

EnableCustomKernelSigners/EnableCustomKernelSigners.vcxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,35 +23,35 @@
2323
<ProjectGuid>{E999DB5C-1C05-4F3E-A9F9-E668C47B3546}</ProjectGuid>
2424
<Keyword>Win32Proj</Keyword>
2525
<RootNamespace>EnableCustomKernelSigners</RootNamespace>
26-
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
26+
<WindowsTargetPlatformVersion>$(LatestTargetPlatformVersion)</WindowsTargetPlatformVersion>
2727
</PropertyGroup>
2828
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
2929
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
3030
<ConfigurationType>Application</ConfigurationType>
3131
<UseDebugLibraries>true</UseDebugLibraries>
32-
<PlatformToolset>v142</PlatformToolset>
32+
<PlatformToolset>v143</PlatformToolset>
3333
<CharacterSet>Unicode</CharacterSet>
3434
<SpectreMitigation>false</SpectreMitigation>
3535
</PropertyGroup>
3636
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
3737
<ConfigurationType>Application</ConfigurationType>
3838
<UseDebugLibraries>false</UseDebugLibraries>
39-
<PlatformToolset>v142</PlatformToolset>
39+
<PlatformToolset>v143</PlatformToolset>
4040
<WholeProgramOptimization>true</WholeProgramOptimization>
4141
<CharacterSet>Unicode</CharacterSet>
4242
<SpectreMitigation>false</SpectreMitigation>
4343
</PropertyGroup>
4444
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
4545
<ConfigurationType>Application</ConfigurationType>
4646
<UseDebugLibraries>true</UseDebugLibraries>
47-
<PlatformToolset>v142</PlatformToolset>
47+
<PlatformToolset>v143</PlatformToolset>
4848
<CharacterSet>Unicode</CharacterSet>
4949
<SpectreMitigation>false</SpectreMitigation>
5050
</PropertyGroup>
5151
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
5252
<ConfigurationType>Application</ConfigurationType>
5353
<UseDebugLibraries>false</UseDebugLibraries>
54-
<PlatformToolset>v142</PlatformToolset>
54+
<PlatformToolset>v143</PlatformToolset>
5555
<WholeProgramOptimization>true</WholeProgramOptimization>
5656
<CharacterSet>Unicode</CharacterSet>
5757
<SpectreMitigation>false</SpectreMitigation>

0 commit comments

Comments
 (0)