Skip to content

Commit

Permalink
Make .NET 8 the minimum supported version
Browse files Browse the repository at this point in the history
  • Loading branch information
ektrah committed Apr 28, 2024
1 parent 56bbe96 commit c78beff
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 46 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
- run: dotnet --info
- uses: actions/checkout@v4
- name: Test (.NET 8.0/Debug)
run: dotnet test tests -f net8.0 -c Debug
- name: Test (.NET 8.0/Release)
run: dotnet test tests -f net8.0 -c Release
- name: Test (.NET 6.0/Debug)
run: dotnet test tests -f net6.0 -c Debug
- name: Test (.NET 6.0/Release)
run: dotnet test tests -f net6.0 -c Release
- name: Pack
run: dotnet pack -c Release
- name: Upload artifacts
Expand All @@ -51,18 +46,13 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
- run: dotnet --info
- uses: actions/checkout@v4
- name: Test (.NET 8.0/Debug)
run: dotnet test tests -f net8.0 -c Debug
- name: Test (.NET 8.0/Release)
run: dotnet test tests -f net8.0 -c Release
- name: Test (.NET 6.0/Debug)
run: dotnet test tests -f net6.0 -c Debug
- name: Test (.NET 6.0/Release)
run: dotnet test tests -f net6.0 -c Release

test-linux:
needs: [test-win, test-linux-musl]
Expand All @@ -86,9 +76,6 @@ jobs:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
steps:
- name: Install prerequisites
run: yum install -q -y curl ca-certificates libicu
if: ${{ startsWith(matrix.os, 'centos') }}
- name: Install prerequisites
run: apt-get -qq update && apt-get -qq install --yes --no-install-recommends curl ca-certificates gettext
if: ${{ startsWith(matrix.os, 'debian') }}
Expand All @@ -102,18 +89,13 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
- run: dotnet --info
- uses: actions/checkout@v4
- name: Test (.NET 8.0/Debug)
run: dotnet test tests -f net8.0 -c Debug
- name: Test (.NET 8.0/Release)
run: dotnet test tests -f net8.0 -c Release
- name: Test (.NET 6.0/Debug)
run: dotnet test tests -f net6.0 -c Debug
- name: Test (.NET 6.0/Release)
run: dotnet test tests -f net6.0 -c Release

test-linux-musl:
strategy:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![NuGet](https://img.shields.io/nuget/vpre/NSec.Cryptography)](https://www.nuget.org/packages/NSec.Cryptography/24.4.0)

[NSec](https://nsec.rocks/) is a cryptographic library for
[.NET 6+](https://dotnet.microsoft.com/) based on
[.NET 8+](https://dotnet.microsoft.com/) based on
[libsodium](https://libsodium.org/) ❤.
It provides modern cryptographic primitives in a modern API based on
[Span<T>](https://docs.microsoft.com/en-us/archive/msdn-magazine/2017/connect/csharp-all-about-span-exploring-a-new-net-mainstay).
Expand Down
40 changes: 20 additions & 20 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,26 @@ Please note:
[NSec 24.4.0](https://www.nuget.org/packages/NSec.Cryptography/24.4.0)
has been tested to run on the following platforms and .NET versions:

| OS | Version | Architecture | .NET |
|:-------------------- |:-------- |:------------- |:-------------- |
| Windows 11 | 23H2 | x64 | 8.0.4 / 6.0.29 |
| Windows Server | 2022 | x64 | 8.0.4 / 6.0.29 |
| | | | |
| macOS | 12.7 | x64 | 8.0.4 / 6.0.29 |
| | 13.6 | x64 | 8.0.4 / 6.0.29 |
| | 14.4 | arm64 | 8.0.4 / 6.0.29 |
| | | | |
| Alpine Linux | 3.18 | x64 | 8.0.4 |
| | 3.19 | x64 | 8.0.4 |
| Debian | 10 | x64 | 8.0.4 / 6.0.29 |
| | 11 | x64 | 8.0.4 / 6.0.29 |
| | 12 | x64 | 8.0.4 / 6.0.29 |
| Fedora | 38 | x64 | 8.0.4 / 6.0.29 |
| | 39 | x64 | 8.0.4 / 6.0.29 |
| | 40 | x64 | 8.0.4 / 6.0.29 |
| Ubuntu | 20.04 | x64 | 8.0.4 / 6.0.29 |
| | 22.04 | x64 | 8.0.4 / 6.0.29 |
| | 24.04 | x64 | 8.0.4 / 6.0.29 |
| OS | Version | Architecture | .NET |
|:-------------------- |:-------- |:------------- |:------|
| Windows 11 | 23H2 | x64 | 8.0.4 |
| Windows Server | 2022 | x64 | 8.0.4 |
| | | | |
| macOS | 12.7 | x64 | 8.0.4 |
| | 13.6 | x64 | 8.0.4 |
| | 14.4 | arm64 | 8.0.4 |
| | | | |
| Alpine Linux | 3.18 | x64 | 8.0.4 |
| | 3.19 | x64 | 8.0.4 |
| Debian | 10 | x64 | 8.0.4 |
| | 11 | x64 | 8.0.4 |
| | 12 | x64 | 8.0.4 |
| Fedora | 38 | x64 | 8.0.4 |
| | 39 | x64 | 8.0.4 |
| | 40 | x64 | 8.0.4 |
| Ubuntu | 20.04 | x64 | 8.0.4 |
| | 22.04 | x64 | 8.0.4 |
| | 24.04 | x64 | 8.0.4 |

The other supported platforms should work as well, but have not been tested.

Expand Down
4 changes: 2 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# NSec

NSec is a modern and easy-to-use cryptographic library for
[.NET 6+](https://dotnet.microsoft.com/) based on
[.NET 8+](https://dotnet.microsoft.com/) based on
[libsodium](https://libsodium.org/).

* **Modern** -- libsodium provides a small set of high-quality, modern
Expand Down Expand Up @@ -44,7 +44,7 @@ and verify the signature:

$ dotnet add package NSec.Cryptography --version 24.4.0

NSec works with .NET 6 and later on Windows, Linux and macOS.
NSec works with .NET 8 and later on Windows, Linux and macOS.

See [[Installation]] for more details.

Expand Down
4 changes: 2 additions & 2 deletions src/Cryptography/NSec.Cryptography.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<TargetFrameworks Condition="!$([MSBuild]::IsOSUnixLike())">$(TargetFrameworks);net6.0-ios</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks Condition="!$([MSBuild]::IsOSUnixLike())">$(TargetFrameworks);net8.0-ios</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Experimental/NSec.Experimental.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<TargetFrameworks Condition="!$([MSBuild]::IsOSUnixLike())">$(TargetFrameworks);net6.0-ios</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks Condition="!$([MSBuild]::IsOSUnixLike())">$(TargetFrameworks);net8.0-ios</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net6.0</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit c78beff

Please sign in to comment.