Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 25 #26

Merged
merged 15 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/cicd-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,24 @@ jobs:
3.1.x
6.0.x
7.0.x
- name: replace version tokens
uses: cschleiden/[email protected]
with:
files: '["**/*.csproj"]'
env:
RELEASE_VERSION: ${{ vars.RELEASE_VERSION }}
- name: install dependencies
run: dotnet restore
- name: build
run: dotnet build
- name: test
run: dotnet restore
- name: build source
run: dotnet build -c Release
- name: run tests
run: dotnet test
- name: create nuget packages
run: dotnet pack -c Release -o ./out
- name: push nuget packages to github
run: dotnet nuget push "./out/NullFX.CRC.${{ vars.RELEASE_VERSION }}.nupkg" -s "https://nuget.pkg.github.com/nullfx/index.json" -k "${{ secrets.GITHUB_TOKEN }}"
- name: push nuget packages to nuget.org
run: dotnet nuget push "./out/NullFX.CRC.${{ vars.RELEASE_VERSION }}.nupkg" --skip-duplicate -s "https://api.nuget.org/v3/index.json" -k "${{ secrets.NUGET_ORG_API_KEY }}"
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
Expand Down
7 changes: 4 additions & 3 deletions NullFX.CRC.Benchmarks/NullFX.CRC.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net47;net48;netcoreapp3.1;net6.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net47;net48;netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<ReleaseVersion>1.1.7</ReleaseVersion>
<!--when manually building this, replace #{RELEASE_VERSION}# with some .net version number like 1.1.1-->
<ReleaseVersion>#{RELEASE_VERSION}#</ReleaseVersion>
<SonarQubeExclude>true</SonarQubeExclude>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.1" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.5" />
<PackageReference Include="System.Data.HashFunction.CRC" Version="2.0.0" />
</ItemGroup>
<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion NullFX.CRC.Tests/NullFX.CRC.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
<ReleaseVersion>1.1.7</ReleaseVersion>
<!--when manually building this, replace #{RELEASE_VERSION}# with some .net version number like 1.1.1-->
<ReleaseVersion>#{RELEASE_VERSION}#</ReleaseVersion>
<SonarQubeExclude>true</SonarQubeExclude>
</PropertyGroup>
<ItemGroup>
Expand Down
15 changes: 8 additions & 7 deletions NullFX.CRC/NullFX.CRC.csproj
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net40;net45;net46;net47;net48;netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net40;net45;net46;net47;net48;netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
<AssemblyName>NullFX.CRC</AssemblyName>
<Description>NullFX CRC is a small set of CRC utilities (crc8, crc16, and crc32) written in C# and released under the MIT License</Description>
<Copyright>2022 Steve Whitley</Copyright>
<Copyright>2023 Steve Whitley</Copyright>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>Steve Whitley</Authors>
<Company>NullFX Software</Company>
<PackageTags>CRC8 CRC16 CRC32</PackageTags>
<PackageProjectUrl>https://github.com/nullfx/NullFX.CRC</PackageProjectUrl>
<RepositoryUrl>https://github.com/nullfx/NullFX.CRC</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageVersion>1.1.7</PackageVersion>
<Owners>Steve Whitley</Owners>
<Summary>NullFX CRC is a small set of CRC utilities (crc8, crc16, and crc32) written in C# and released under the MIT License</Summary>
<Title>NullFX CRC</Title>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<AssemblyVersion>1.1.7.0</AssemblyVersion>
<FileVersion>1.1.7.0</FileVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Version>1.1.7</Version>
<ReleaseVersion>1.1.7</ReleaseVersion>
<Configurations>Release;Debug</Configurations>
<SonarQubeTestProject>True</SonarQubeTestProject>
<!--when manually building this, replace #{RELEASE_VERSION}# with some .net version number like 1.1.1-->
<PackageVersion>#{RELEASE_VERSION}#</PackageVersion>
<AssemblyVersion>#{RELEASE_VERSION}#.0</AssemblyVersion>
<FileVersion>#{RELEASE_VERSION}#.0</FileVersion>
<Version>#{RELEASE_VERSION}#</Version>
<ReleaseVersion>#{RELEASE_VERSION}#</ReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ NullFX CRC is a small set of CRC utilities written in native C# released under t
## Install

```sh
dotnet add PROJECT package NullFX.CRC --version 1.1.7
dotnet add PROJECT package NullFX.CRC --version 1.1.8
```

## Examples:
Expand Down