Build test with MSVC #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build test with MSVC | |
on: | |
workflow_call: | |
# 手動トリガーを許可 | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: hendrikmuhs/ccache-action@v1.2 | |
with: | |
variant: ccache | |
key: MSVC-BuildTest | |
max-size: "200M" | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v1 | |
- name: Setup NuGet | |
uses: NuGet/setup-nuget@v1 | |
- name: Restore Nuget Packages | |
run: | | |
NuGet restore .\Hengband\Hengband.sln | |
- name: Print ccache path | |
run: | | |
(Get-Command ccache).Source | |
- name: copy ccache.exe as cl.exe to temporary directory | |
run: | | |
Copy-Item -v -Path (Get-Command ccache).Source -Destination $env:TEMP\cl.exe -Force | |
- name: Run build test | |
run: | | |
MSBuild -warnAsError /p:CLToolPath=$env:TEMP /p:UseMultiToolTask=true /p:TrackFileAccess=false .\Hengband\Hengband.sln /t:Rebuild /p:Configuration=Debug |