Skip to content

Commit

Permalink
Update supported platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
ektrah committed Apr 27, 2024
1 parent 36ffd9e commit 471baf4
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 68 deletions.
47 changes: 6 additions & 41 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,13 @@ jobs:
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- run: dotnet --info
- uses: actions/checkout@v3
- 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 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
- name: Test (.NET 6.0/Debug)
run: dotnet test tests -f net6.0 -c Debug
- name: Test (.NET 6.0/Release)
Expand All @@ -44,9 +39,9 @@ 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
Expand All @@ -57,18 +52,13 @@ jobs:
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- run: dotnet --info
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- 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 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
- name: Test (.NET 6.0/Debug)
run: dotnet test tests -f net6.0 -c Debug
- name: Test (.NET 6.0/Release)
Expand All @@ -80,16 +70,17 @@ 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: fedora:39
- os: fedora:40
- os: ubuntu:16.04
- os: ubuntu:18.04
- os: ubuntu:20.04
- os: ubuntu:22.04
- os: ubuntu:24.04
runs-on: ubuntu-latest
container:
image: ${{ matrix.os }}
Expand All @@ -114,45 +105,19 @@ jobs:
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- run: dotnet --info
- uses: actions/checkout@v3
- 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 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
- 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-musl7:
strategy:
fail-fast: false
matrix:
include:
- os: alpine3.17
- os: alpine3.18
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/dotnet/sdk:7.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

test-linux-musl8:
test-linux-musl:
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>

<PropertyGroup>
<LangVersion>12.0</LangVersion>
<LangVersion>9.0</LangVersion>
<Features>strict</Features>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
47 changes: 24 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,28 @@ 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 | 16.04 | x64 | 8.0.4 / 6.0.29 |
| | 18.04 | x64 | 8.0.4 / 6.0.29 |
| | 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 +70,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
2 changes: 1 addition & 1 deletion src/Cryptography/NSec.Cryptography.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

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

<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>
</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>net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 471baf4

Please sign in to comment.