Skip to content

Commit

Permalink
Merge pull request #77 from iRubens/feature/net8
Browse files Browse the repository at this point in the history
NET8 support
  • Loading branch information
ektrah authored Apr 27, 2024
2 parents 804c403 + d00e9f5 commit 8a86a7b
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 60 deletions.
65 changes: 32 additions & 33 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ jobs:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
steps:
- name: Set up .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- run: dotnet --info
- uses: actions/checkout@v3
- name: Test (.NET 7.0/Debug)
run: dotnet test tests -f net7.0 -c Debug
- name: Test (.NET 7.0/Release)
run: dotnet test tests -f net7.0 -c Release
- 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)
Expand All @@ -39,26 +39,26 @@ jobs:
fail-fast: false
matrix:
include:
- os: macos-11
- os: macos-12
- os: macos-13
- os: macos-14
runs-on: ${{ matrix.os }}
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
steps:
- name: Set up .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- run: dotnet --info
- uses: actions/checkout@v3
- name: Test (.NET 7.0/Debug)
run: dotnet test tests -f net7.0 -c Debug
- name: Test (.NET 7.0/Release)
run: dotnet test tests -f net7.0 -c Release
- 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)
Expand All @@ -70,16 +70,15 @@ jobs:
fail-fast: false
matrix:
include:
- os: centos:7
- os: debian:10
- os: debian:11
- os: debian:12
- os: fedora:37
- os: fedora:38
- os: ubuntu:16.04
- os: ubuntu:18.04
- os: fedora:39
- os: fedora:40
- os: ubuntu:20.04
- os: ubuntu:22.04
- os: ubuntu:24.04
runs-on: ubuntu-latest
container:
image: ${{ matrix.os }}
Expand All @@ -100,17 +99,17 @@ jobs:
run: apt-get -qq update && apt-get -qq install --yes --no-install-recommends curl ca-certificates gettext
if: ${{ startsWith(matrix.os, 'ubuntu') }}
- name: Set up .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- run: dotnet --info
- uses: actions/checkout@v3
- name: Test (.NET 7.0/Debug)
run: dotnet test tests -f net7.0 -c Debug
- name: Test (.NET 7.0/Release)
run: dotnet test tests -f net7.0 -c Release
- 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)
Expand All @@ -121,18 +120,18 @@ jobs:
fail-fast: false
matrix:
include:
- os: alpine3.17
- os: alpine3.18
- os: alpine3.19
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/dotnet/sdk:7.0-${{ matrix.os }}
image: mcr.microsoft.com/dotnet/sdk:8.0-${{ matrix.os }}
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
steps:
- run: dotnet --info
- uses: actions/checkout@v3
- name: Test (.NET 7.0/Debug)
run: dotnet test tests -f net7.0 -c Debug
- name: Test (.NET 7.0/Release)
run: dotnet test tests -f net7.0 -c Release
- 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
45 changes: 22 additions & 23 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on the following platforms:
Please note:

1. For Windows, the
[Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017, 2019, and 2022](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads)
[Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017, 2019, and 2022](https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist)
is required. This is part of the .NET SDK but might not be present on a
clean Windows installation.

Expand All @@ -40,27 +40,26 @@ Please note:
[NSec 23.9.0-preview.3](https://www.nuget.org/packages/NSec.Cryptography/23.9.0-preview.3)
has been tested to run on the following platforms and .NET versions:

| OS | Version | Architectures | .NET |
|:-------------------- |:-------- |:------------- |:--------------- |
| Windows 11 | 22H2 | x64 | 7.0.11 / 6.0.22 |
| Windows Server | 2022 | x64 | 7.0.11 / 6.0.22 |
| | | | |
| macOS | 11.7 | x64 | 7.0.11 / 6.0.22 |
| | 12.6 | x64 | 7.0.11 / 6.0.22 |
| | 13.4 | x64 | 7.0.11 / 6.0.22 |
| | | | |
| Alpine Linux | 3.17 | x64 | 7.0.10 |
| | 3.18 | x64 | 7.0.11 |
| CentOS Linux | 7 | x64 | 7.0.11 / 6.0.22 |
| Debian | 10 | x64 | 7.0.11 / 6.0.22 |
| | 11 | x64 | 7.0.11 / 6.0.22 |
| | 12 | x64 | 7.0.11 / 6.0.22 |
| Fedora | 37 | x64 | 7.0.11 / 6.0.22 |
| | 38 | x64 | 7.0.11 / 6.0.22 |
| Ubuntu | 16.04 | x64 | 7.0.11 / 6.0.22 |
| | 18.04 | x64 | 7.0.11 / 6.0.22 |
| | 20.04 | x64 | 7.0.11 / 6.0.22 |
| | 22.04 | x64 | 7.0.11 / 6.0.22 |
| 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 |

The other supported platforms should work as well, but haven't been tested.

Expand All @@ -69,7 +68,7 @@ The other supported platforms should work as well, but haven't been tested.

Below are some frequently asked questions:

**Q**: What could cause a *System.DllNotFoundException: Unable to load shared
**Q**: What causes a *System.DllNotFoundException: Unable to load shared
library 'libsodium' or one of its dependencies.* when using the
NSec.Cryptography NuGet package?
**A**: This exception can occur if the operating system or architecture is not
Expand Down
8 changes: 4 additions & 4 deletions tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

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

<PropertyGroup>
Expand All @@ -15,9 +15,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 8a86a7b

Please sign in to comment.