From cce2f098eab2209af707a0e11ebea6f9bb2b61d5 Mon Sep 17 00:00:00 2001 From: Zaitonn <103164490+Zaitonn@users.noreply.github.com> Date: Fri, 15 Dec 2023 12:11:30 +0800 Subject: [PATCH] Fixed some mistakes in `iNKORE.UI.WPF.Modern.SampleApp` and added a workflow --- .github/workflows/build.yml | 40 +++++++++++++++++++ .../ControlPages/SystemBackdropsPage.xaml.cs | 2 +- .../MainWindow.xaml.cs | 3 +- .../SampleSystemBackdropsWindow.xaml.cs | 2 +- 4 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..0a7531cd --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +name: Build + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + + - name: Install dependencies + run: dotnet restore + + - name: Build and pack + continue-on-error: true + run: | + dotnet build .\source\iNKORE.UI.WPF.Modern + dotnet build .\source\iNKORE.UI.WPF.Modern.SampleApp + # dotnet pack .\source\iNKORE.UI.WPF.Modern.Controls --configuration Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg + + - name: Upload binary libraries of iNKORE.UI.WPF.Modern.Controls + uses: actions/upload-artifact@v3 + with: + name: iNKORE.UI.WPF.Modern.Controls dlls + path: .\source\iNKORE.UI.WPF.Modern.Controls\bin\Debug + + - name: Upload sample apps + uses: actions/upload-artifact@v3 + with: + name: iNKORE.UI.WPF.Modern.SampleApp files + path: .\source\iNKORE.UI.WPF.Modern.SampleApp\bin\Debug diff --git a/source/iNKORE.UI.WPF.Modern.SampleApp/ControlPages/SystemBackdropsPage.xaml.cs b/source/iNKORE.UI.WPF.Modern.SampleApp/ControlPages/SystemBackdropsPage.xaml.cs index 60f0831f..cc30dffb 100644 --- a/source/iNKORE.UI.WPF.Modern.SampleApp/ControlPages/SystemBackdropsPage.xaml.cs +++ b/source/iNKORE.UI.WPF.Modern.SampleApp/ControlPages/SystemBackdropsPage.xaml.cs @@ -1,7 +1,7 @@ using iNKORE.UI.WPF.Modern.Controls; using iNKORE.UI.WPF.Modern.Controls.Helpers; using iNKORE.UI.WPF.Modern.Controls.Primitives; -using iNKORE.UI.WPF.Modern.Helpers.Backdrop; +using iNKORE.UI.WPF.Modern.Helpers.Styles; using iNKORE.UI.WPF.Modern.SampleApp.SamplePages; using System; using System.Collections.Generic; diff --git a/source/iNKORE.UI.WPF.Modern.SampleApp/MainWindow.xaml.cs b/source/iNKORE.UI.WPF.Modern.SampleApp/MainWindow.xaml.cs index 6af4a795..90d00efd 100644 --- a/source/iNKORE.UI.WPF.Modern.SampleApp/MainWindow.xaml.cs +++ b/source/iNKORE.UI.WPF.Modern.SampleApp/MainWindow.xaml.cs @@ -1,6 +1,7 @@ using iNKORE.UI.WPF.Modern.Controls; using iNKORE.UI.WPF.Modern.Controls.Primitives; -using iNKORE.UI.WPF.Modern.Helpers.Backdrop; +using iNKORE.UI.WPF.Modern.Controls.Helpers; +using iNKORE.UI.WPF.Modern.Helpers.Styles; using iNKORE.UI.WPF.Modern.SampleApp.Common; using iNKORE.UI.WPF.Modern.SampleApp.DataModel; using iNKORE.UI.WPF.Modern.SampleApp.Helper; diff --git a/source/iNKORE.UI.WPF.Modern.SampleApp/SamplePages/SampleSystemBackdropsWindow.xaml.cs b/source/iNKORE.UI.WPF.Modern.SampleApp/SamplePages/SampleSystemBackdropsWindow.xaml.cs index e4ad2461..a08d15ec 100644 --- a/source/iNKORE.UI.WPF.Modern.SampleApp/SamplePages/SampleSystemBackdropsWindow.xaml.cs +++ b/source/iNKORE.UI.WPF.Modern.SampleApp/SamplePages/SampleSystemBackdropsWindow.xaml.cs @@ -1,7 +1,7 @@ using iNKORE.UI.WPF.Modern.Controls.Helpers; using iNKORE.UI.WPF.Modern.Controls.Primitives; using iNKORE.UI.WPF.Modern.Helpers; -using iNKORE.UI.WPF.Modern.Helpers.Backdrop; +using iNKORE.UI.WPF.Modern.Helpers.Styles; using System; using System.Collections.Generic; using System.Drawing.Drawing2D;