mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-24 04:25:10 -07:00
Pack the NuGet package with .NET 5.0 (#1009)
* Update libsodium.pkgproj * Update dotnet-core.yml
This commit is contained in:
parent
b302c8e8e1
commit
e8f3c89847
19
.github/workflows/dotnet-core.yml
vendored
19
.github/workflows/dotnet-core.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: .NET Core Package
|
name: .NET Package
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -99,11 +99,13 @@ jobs:
|
|||||||
- build-linux-glibc
|
- build-linux-glibc
|
||||||
- build-linux-musl
|
- build-linux-musl
|
||||||
- build-macos
|
- build-macos
|
||||||
|
container:
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:5.0
|
||||||
|
env:
|
||||||
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||||
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
||||||
|
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
|
||||||
steps:
|
steps:
|
||||||
- name: Set up .NET Core SDK
|
|
||||||
uses: actions/setup-dotnet@v1
|
|
||||||
with:
|
|
||||||
dotnet-version: 2.1.607
|
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/download-artifact@v1
|
- uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
@ -128,14 +130,11 @@ jobs:
|
|||||||
- name: Copy files
|
- name: Copy files
|
||||||
run: cp AUTHORS ChangeLog LICENSE packaging/dotnet-core/libsodium.pkgproj .libsodium-pack/
|
run: cp AUTHORS ChangeLog LICENSE packaging/dotnet-core/libsodium.pkgproj .libsodium-pack/
|
||||||
- name: Create NuGet package
|
- name: Create NuGet package
|
||||||
run: dotnet pack .libsodium-pack/libsodium.pkgproj
|
run: dotnet pack -c Release .libsodium-pack/libsodium.pkgproj
|
||||||
env:
|
|
||||||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
||||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: nuget-package
|
name: nuget-package
|
||||||
path: .libsodium-pack/libsodium.1.0.18.nupkg
|
path: .libsodium-pack/bin/Release/libsodium.1.0.18.nupkg
|
||||||
|
|
||||||
test-ubuntu18_04:
|
test-ubuntu18_04:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard1.1</TargetFramework>
|
<TargetFramework>netstandard2.0</TargetFramework>
|
||||||
<NoBuild>true</NoBuild>
|
<NoBuild>true</NoBuild>
|
||||||
<IncludeBuildOutput>false</IncludeBuildOutput>
|
<IncludeBuildOutput>false</IncludeBuildOutput>
|
||||||
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
|
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
|
||||||
<PackageOutputPath>$(MSBuildProjectDirectory)</PackageOutputPath>
|
|
||||||
<ProjectFileToPack>$(MSBuildProjectFullPath)</ProjectFileToPack>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
@ -23,10 +21,6 @@
|
|||||||
<MinClientVersion>4.0</MinClientVersion>
|
<MinClientVersion>4.0</MinClientVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="Microsoft.NETCore.Platforms" Version="1.0.1" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="LICENSE" PackagePath="" />
|
<Content Include="LICENSE" PackagePath="" />
|
||||||
<Content Include="AUTHORS" PackagePath="" />
|
<Content Include="AUTHORS" PackagePath="" />
|
||||||
|
Loading…
Reference in New Issue
Block a user