Enable Windows Github actions

This commit is contained in:
Doug Arcuri 2022-05-06 10:17:02 -04:00
parent 1f8c89a239
commit ef409b1373
6 changed files with 40 additions and 2 deletions

View file

@ -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\*

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>