Skip to content

Commit

Permalink
Updated Readme. Added GitHub Actions CI build. Added SetWindowThemeRa…
Browse files Browse the repository at this point in the history
…w if all you have is a HWND, not a WPF or Forms window.
  • Loading branch information
Aldaviva committed Aug 14, 2022
1 parent 4e43568 commit f78b309
Show file tree
Hide file tree
Showing 12 changed files with 186 additions and 376 deletions.
Binary file added .github/images/demo-winforms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/demo-wpf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions .github/workflows/dotnetpackage.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ _ReSharper*/
.vs/
#Nuget packages folder
packages/
/upload/
124 changes: 0 additions & 124 deletions Readme-Forms.md

This file was deleted.

137 changes: 0 additions & 137 deletions Readme-WPF.md

This file was deleted.

Loading

0 comments on commit f78b309

Please sign in to comment.