mirror of
https://github.com/nzp-team/vhlt.git
synced 2024-11-21 19:32:27 +00:00
Enable Windows Github actions
This commit is contained in:
parent
1f8c89a239
commit
ef409b1373
6 changed files with 40 additions and 2 deletions
27
.github/workflows/.github.yml
vendored
27
.github/workflows/.github.yml
vendored
|
@ -3,7 +3,7 @@ name: build
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
linux_builds:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -13,7 +13,30 @@ jobs:
|
|||
CXX: ${{ matrix.cxx }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Build
|
||||
run: |
|
||||
make
|
||||
|
||||
windows_build:
|
||||
runs-on: windows-latest
|
||||
|
||||
env:
|
||||
SOLUTION_FILE_PATH: .
|
||||
BUILD_CONFIGURATION: Release
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Add MSBuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
|
||||
- name: Build vhlt Windows tools
|
||||
working-directory: ${{env.GITHUB_WORKSPACE}}
|
||||
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
|
||||
|
||||
- name: Archive vhlt Windows tools
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: vhlt-windows-tools
|
||||
path: D:\a\vhlt\bin\*
|
||||
|
|
|
@ -176,4 +176,7 @@
|
|||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
<Target Name="AfterBuild">
|
||||
<Copy SourceFiles="$(OutDir)$(ProjectName).exe" DestinationFolder="..\..\bin" SkipUnchangedFiles="false" />
|
||||
</Target>
|
||||
</Project>
|
|
@ -180,4 +180,7 @@
|
|||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
<Target Name="AfterBuild">
|
||||
<Copy SourceFiles="$(OutDir)$(ProjectName).exe" DestinationFolder="..\..\bin" SkipUnchangedFiles="false" />
|
||||
</Target>
|
||||
</Project>
|
|
@ -183,4 +183,7 @@
|
|||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
<Target Name="AfterBuild">
|
||||
<Copy SourceFiles="$(OutDir)$(ProjectName).exe" DestinationFolder="..\..\bin" SkipUnchangedFiles="false" />
|
||||
</Target>
|
||||
</Project>
|
|
@ -171,4 +171,7 @@
|
|||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
<Target Name="AfterBuild">
|
||||
<Copy SourceFiles="$(OutDir)$(ProjectName).exe" DestinationFolder="..\..\bin" SkipUnchangedFiles="false" />
|
||||
</Target>
|
||||
</Project>
|
|
@ -169,4 +169,7 @@
|
|||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
<Target Name="AfterBuild">
|
||||
<Copy SourceFiles="$(OutDir)$(ProjectName).exe" DestinationFolder="..\..\bin" SkipUnchangedFiles="false" />
|
||||
</Target>
|
||||
</Project>
|
Loading…
Reference in a new issue