-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'windowsair/ci' into main
* windowsair/ci: build: Add support for github action
- Loading branch information
Showing
8 changed files
with
258 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '.github/*' | ||
- '*.md' | ||
pull_request: | ||
paths-ignore: | ||
- '.github/*' | ||
- '*.md' | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
env: | ||
POWERSHELL_TELEMETRY_OPTOUT: 1 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: microsoft/setup-msbuild@v1 | ||
- name: Restore nuget package | ||
run: nuget restore | ||
- name: Build all targets | ||
run: msbuild -m BuildAllTargets.proj | ||
- name: Generate release tag | ||
id: tag | ||
run: echo "::set-output name=release_tag::NetDebugger_$(Get-Date -Format "yyyy.MM.dd_HH_mm")" | ||
- name: Release bin files | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ steps.tag.outputs.release_tag }} | ||
files: | | ||
Bin/NetDebugger_Debug_x86.exe | ||
Bin/NetDebugger_Debug_x64.exe | ||
Bin/NetDebugger_Release_x86.exe | ||
Bin/NetDebugger_Release_x64.exe |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
.vs | ||
NetDebugger/Debug | ||
NetDebugger/Release | ||
NetDebugger/x64 | ||
NetDebugger/x64 | ||
|
||
# Ignore NuGet Packages | ||
*.nupkg | ||
# Ignore the packages folder | ||
**/packages/* | ||
# except build/, which is used as an MSBuild target. | ||
!**/packages/build/ | ||
# Uncomment if necessary however generally it will be regenerated when needed | ||
#!**/packages/repositories.config |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project | ||
DefaultTargets="Restore;Build" | ||
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<SolutionPath>$(MSBuildThisFileDirectory)*.sln</SolutionPath> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="$(SolutionPath)"> | ||
<AdditionalProperties>Configuration=Debug;Platform=x86</AdditionalProperties> | ||
</ProjectReference> | ||
<ProjectReference Include="$(SolutionPath)"> | ||
<AdditionalProperties>Configuration=Release;Platform=x86</AdditionalProperties> | ||
</ProjectReference> | ||
<ProjectReference Include="$(SolutionPath)"> | ||
<AdditionalProperties>Configuration=Debug;Platform=x64</AdditionalProperties> | ||
</ProjectReference> | ||
<ProjectReference Include="$(SolutionPath)"> | ||
<AdditionalProperties>Configuration=Release;Platform=x64</AdditionalProperties> | ||
</ProjectReference> | ||
<!-- <ProjectReference Include="$(SolutionPath)"> | ||
<AdditionalProperties>Configuration=Debug;Platform=ARM64</AdditionalProperties> | ||
</ProjectReference> | ||
<ProjectReference Include="$(SolutionPath)"> | ||
<AdditionalProperties>Configuration=Release;Platform=ARM64</AdditionalProperties> | ||
</ProjectReference> --> | ||
</ItemGroup> | ||
<Target Name="Restore" > | ||
<MSBuild | ||
Projects="@(ProjectReference)" | ||
Targets="Restore" | ||
StopOnFirstFailure="True" | ||
Properties="PreferredToolArchitecture=x64" /> | ||
</Target> | ||
<Target Name="Build" > | ||
<MSBuild | ||
Projects="@(ProjectReference)" | ||
Targets="Build" | ||
BuildInParallel="True" | ||
StopOnFirstFailure="True" | ||
Properties="PreferredToolArchitecture=x64" /> | ||
</Target> | ||
<Target Name="Rebuild" > | ||
<MSBuild | ||
Projects="@(ProjectReference)" | ||
Targets="Rebuild" | ||
BuildInParallel="True" | ||
StopOnFirstFailure="True" | ||
Properties="PreferredToolArchitecture=x64" /> | ||
</Target> | ||
</Project> |
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
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
Oops, something went wrong.