-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Readme. Added GitHub Actions CI build. Added SetWindowThemeRa…
…w if all you have is a HWND, not a WPF or Forms window.
- Loading branch information
Showing
12 changed files
with
186 additions
and
376 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,45 @@ | ||
name: .NET | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
env: | ||
ProjectName: DarkNet | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build library | ||
run: dotnet build ${{ env.ProjectName }} --no-restore --configuration Release | ||
|
||
- name: Pack library | ||
run: dotnet pack ${{ env.ProjectName }} --no-build --configuration Release | ||
|
||
- name: Build demos | ||
run: | | ||
dotnet build darknet-demo-winforms --no-restore --configuration Release | ||
dotnet publish darknet-demo-wpf --configuration Release -p:PublishSingleFile=true --runtime win-x86 --self-contained false | ||
- name: Flatten artifacts | ||
run: | | ||
mkdir upload | ||
copy ${{ env.ProjectName }}/bin/Release/*.*nupkg upload | ||
copy darknet-demo-winforms/bin/Release/*.exe upload | ||
copy darknet-demo-wpf/bin/Release/**/publish/*.exe upload | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ env.ProjectName }} | ||
path: upload |
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 |
---|---|---|
|
@@ -30,3 +30,4 @@ _ReSharper*/ | |
.vs/ | ||
#Nuget packages folder | ||
packages/ | ||
/upload/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.