Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
GitHub actions build added (#1)
Browse files Browse the repository at this point in the history
simple dotnet github action added and fixing multiple project issues
  • Loading branch information
SergeyFilippov authored Dec 20, 2023
1 parent 7e5d161 commit 63a1208
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 8 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/simple-dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: .NET Core Desktop

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
workflow_dispatch:

jobs:

build:

strategy:
matrix:
configuration: [Release]

runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on

env:
Solution_Name: Bal.Converter.sln # Replace with your solution name, i.e. MyWpfApp.sln.


steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2

# Execute all unit tests in the solution
#- name: Execute unit tests
# run: dotnet test

- name: publish
run: dotnet publish sources/Bal.Converter/Bal.Converter.csproj /p:PublishProfile=sources/Bal.Converter/Properties/PublishProfiles/FolderProfile.pubxml

- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: published-binary-${{ github.run_number }}
path: |
publish
!publish/**/*.pdb
7 changes: 7 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="WinUI CommunityToolkit-Labs" value="https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json" />
</packageSources>
</configuration>
1 change: 0 additions & 1 deletion sources/Bal.Converter.CLI/Bal.Converter.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Bal.Converter.Common.Conversion\Bal.Converter.Common.Transformation.csproj" />
<ProjectReference Include="..\Bal.Converter.Common.Transformation\Bal.Converter.Common.Transformation.csproj" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions sources/Bal.Converter.Common/Bal.Converter.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="12.2.2" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="13.5.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

</Project>
11 changes: 6 additions & 5 deletions sources/Bal.Converter/Bal.Converter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<AppxBundle>Never</AppxBundle>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<ValidateExecutableReferencesMatchSelfContained>false</ValidateExecutableReferencesMatchSelfContained>
<WindowsPackageType>None</WindowsPackageType>
</PropertyGroup>
<ItemGroup>
<None Remove="Controls\SettingsGroup\SettingsGroup.xaml" />
Expand Down Expand Up @@ -51,15 +52,15 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.0" />
<PackageReference Include="CommunityToolkit.Labs.WinUI.SettingsControls" Version="0.0.12" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.1" />
<PackageReference Include="CommunityToolkit.Labs.WinUI.SettingsControls" Version="0.0.18" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Core" Version="7.1.2" />
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Input" Version="7.1.2" />
<PackageReference Include="H.NotifyIcon" Version="2.0.108" />
<PackageReference Include="H.NotifyIcon.WinUI" Version="2.0.108" />
<PackageReference Include="LiteDB" Version="5.0.15" />
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="12.2.2" />
<PackageReference Include="LiteDB" Version="5.0.17" />
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="13.5.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="Microsoft.Toolkit.Uwp.UI.Controls" Version="7.1.3" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.3.230502000" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<PublishDir>../../publish</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<_TargetId>Folder</_TargetId>
<TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>

0 comments on commit 63a1208

Please sign in to comment.