-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from SergeyLadanov/new_dotnet
New dotnet
- Loading branch information
Showing
9 changed files
with
145 additions
and
186 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,34 @@ | ||
name: Build dotnet | ||
|
||
on: | ||
push: | ||
branches: '*' | ||
pull_request: | ||
branches: '*' | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout repository | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- name: Build | ||
run: dotnet publish CPL_Converter.csproj -c Release -o CPL_Converter -r win-x64 --self-contained false /p:EnableWindowsTargeting=true /p:FileVersion=$GITHUB_REF_NAME | ||
|
||
- name: Tar files | ||
run: tar -cvf Build_Output.tar CPL_Converter | ||
|
||
- name: Upload artifatcs | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Build_Output.tar | ||
path: | | ||
Build_Output.tar |
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,40 @@ | ||
name: Release project | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: Building project | ||
uses: ./.gitea/workflows/build.yml | ||
upload: | ||
name: Uploading files | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download build artifatcs | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: Build_Output.tar | ||
|
||
- name: Rename output files | ||
run: mv Build_Output.tar/Build_Output.tar CPL_Converter_$GITHUB_REF_NAME.tar | ||
|
||
- name: List of files | ||
run: ls | ||
|
||
- name: setup go | ||
uses: https://github.com/actions/setup-go@v4 | ||
with: | ||
go-version: '>=1.20.1' | ||
|
||
|
||
- name: Use Go Action | ||
id: use-go-action | ||
uses: https://gitea.com/actions/release-action@main | ||
with: | ||
files: |- | ||
CPL_Converter_*.tar | ||
api_key: '${{secrets.RELEASE_TOKEN}}' |
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 |
---|---|---|
|
@@ -5,23 +5,27 @@ on: | |
branches: '*' | ||
pull_request: | ||
branches: '*' | ||
|
||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 5.0.x | ||
- name: Setup MSBuild.exe | ||
uses: microsoft/[email protected] | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
dotnet-version: 6.0.x | ||
|
||
- name: Build | ||
run: MSBuild CPL_Converter.csproj /p:Configuration=Release | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal | ||
run: dotnet publish CPL_Converter.csproj -c Release -o CPL_Converter/CPL_Converter -r win-x64 --self-contained false /p:EnableWindowsTargeting=true /p:FileVersion=$GITHUB_REF_NAME | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Build_Output | ||
path: | | ||
CPL_Converter |
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,35 +1,37 @@ | ||
name: Release | ||
name: Release project | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
|
||
name: Building project | ||
uses: ./.github/workflows/dotnet.yml | ||
upload: | ||
name: Uploading files | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.x | ||
- name: Setup MSBuild.exe | ||
uses: microsoft/[email protected] | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: MSBuild CPL_Converter.csproj /p:Configuration=Release | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal | ||
|
||
|
||
- name: Upload bin to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: bin/Release/CPL_Converter.exe | ||
asset_name: CPL_Converter_$tag.exe | ||
tag: ${{ github.ref }} | ||
- name: Download build artifatcs | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: Build_Output | ||
- name: List of files | ||
run: ls | ||
|
||
|
||
- name: ZIP files | ||
uses: thedoctor0/zip-release@master | ||
with: | ||
type: 'zip' | ||
filename: 'release.zip' | ||
|
||
- name: Upload bin to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: release.zip | ||
asset_name: CPL_Converter_$tag.zip | ||
tag: ${{ github.ref }} |
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,118 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{C04F2BE8-3B9D-43B0-86BE-AFA04EA83908}</ProjectGuid> | ||
<TargetFramework>net6.0-windows</TargetFramework> | ||
<OutputType>WinExe</OutputType> | ||
<RootNamespace>CPL_Converter</RootNamespace> | ||
<AssemblyName>CPL_Converter</AssemblyName> | ||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<Deterministic>true</Deterministic> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<UseWindowsForms>true</UseWindowsForms> | ||
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets> | ||
<EnableWindowsTargeting>true</EnableWindowsTargeting> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<ApplicationIcon>formIcon.ico</ApplicationIcon> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL"> | ||
<HintPath>packages\Microsoft.Office.Interop.Excel.15.0.4795.1000\lib\net20\Microsoft.Office.Interop.Excel.dll</HintPath> | ||
<EmbedInteropTypes>True</EmbedInteropTypes> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Deployment" /> | ||
<Reference Include="System.Drawing" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Windows.Forms" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="CplConverter.cs" /> | ||
<Compile Include="Form1.cs"> | ||
<SubType>Form</SubType> | ||
</Compile> | ||
<Compile Include="Form1.Designer.cs"> | ||
<DependentUpon>Form1.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="Program.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<EmbeddedResource Include="Form1.resx"> | ||
<DependentUpon>Form1.cs</DependentUpon> | ||
</EmbeddedResource> | ||
<EmbeddedResource Include="Properties\Resources.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> | ||
<SubType>Designer</SubType> | ||
</EmbeddedResource> | ||
<Compile Include="Properties\Resources.Designer.cs"> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>Resources.resx</DependentUpon> | ||
</Compile> | ||
<None Include="packages.config" /> | ||
<None Include="Properties\Settings.settings"> | ||
<Generator>SettingsSingleFileGenerator</Generator> | ||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> | ||
</None> | ||
<Compile Include="Properties\Settings.Designer.cs"> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>Settings.settings</DependentUpon> | ||
<DesignTimeSharedInput>True</DesignTimeSharedInput> | ||
</Compile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="App.config" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<COMReference Include="Microsoft.Office.Core"> | ||
<Guid>{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}</Guid> | ||
<VersionMajor>2</VersionMajor> | ||
<VersionMinor>8</VersionMinor> | ||
<Lcid>0</Lcid> | ||
<WrapperTool>primary</WrapperTool> | ||
<Isolated>False</Isolated> | ||
<EmbedInteropTypes>True</EmbedInteropTypes> | ||
</COMReference> | ||
<COMReference Include="VBIDE"> | ||
<Guid>{0002E157-0000-0000-C000-000000000046}</Guid> | ||
<VersionMajor>5</VersionMajor> | ||
<VersionMinor>3</VersionMinor> | ||
<Lcid>0</Lcid> | ||
<WrapperTool>primary</WrapperTool> | ||
<Isolated>False</Isolated> | ||
<EmbedInteropTypes>True</EmbedInteropTypes> | ||
</COMReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="formIcon.ico" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<WCFMetadata Include="Connected Services\" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> | ||
<PackageReference Include="Microsoft.Office.Interop.Excel" Version="15.0.4795.1001" /> | ||
<PackageReference Include="Open-XML-SDK" Version="2.9.1" /> | ||
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" /> | ||
</ItemGroup> | ||
</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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.