Harshavardhana
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
34 additions and
9 deletions
-
.github/workflows/minio-dotnet-linux.yml
-
BIN
Minio.pub
-
BIN
Minio.snk
-
Minio/Minio.csproj
-
Minio/Properties/AssemblyInfo.cs
-
dotnet-build.sh
|
|
@ -44,6 +44,11 @@ jobs: |
|
|
|
dotnet pack ./Minio/Minio.csproj --no-build --configuration Release --output ./artifacts |
|
|
|
dotnet test ./Minio.Tests/Minio.Tests.csproj |
|
|
|
|
|
|
|
# Build for all runtime identifiers |
|
|
|
- name: Build for runtime identifiers |
|
|
|
run: | |
|
|
|
./dotnet-build.sh |
|
|
|
|
|
|
|
# Execute all functional tests in the solution |
|
|
|
- name: Execute Functional Tests |
|
|
|
env: |
|
|
|
|
|
@ -3,8 +3,8 @@ |
|
|
|
<LangVersion>latest</LangVersion> |
|
|
|
<AssemblyName>Minio</AssemblyName> |
|
|
|
<RootNamespace>Minio</RootNamespace> |
|
|
|
<TargetFramework Condition=" '$(OS)' == 'Windows_NT'">netstandard2.0</TargetFramework> |
|
|
|
<TargetFramework Condition=" '$(OS)' != 'Windows_NT'">netstandard2.1</TargetFramework> |
|
|
|
<TargetFramework Condition=" '$(RuntimeIdentifier)' == 'win-x64' Or '$(RuntimeIdentifier)' == 'win-arm64'">netstandard2.0</TargetFramework> |
|
|
|
<TargetFramework Condition=" '$(RuntimeIdentifier)' != 'win-x64' And '$(RuntimeIdentifier)' != 'win-arm64'">netstandard2.1</TargetFramework> |
|
|
|
<DebugType>embedded</DebugType> |
|
|
|
<GeneratePackageOnBuild>False</GeneratePackageOnBuild> |
|
|
|
<AssemblyOriginatorKeyFile>..\Minio.snk</AssemblyOriginatorKeyFile> |
|
|
@ -17,7 +17,7 @@ |
|
|
|
<Product>Minio</Product> |
|
|
|
<Version>4.0.3</Version> |
|
|
|
<Description>MinIO .NET SDK for Amazon S3 Compatible Cloud Storage.</Description> |
|
|
|
<Copyright>Copyright (c) 2022. All rights reserved.</Copyright> |
|
|
|
<Copyright>Copyright (c) 2022. All rights reserved.</Copyright> |
|
|
|
<Authors>MinIO, Inc.</Authors> |
|
|
|
<NoWarn>$(NoWarn);CS1591</NoWarn> |
|
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile> |
|
|
@ -29,7 +29,7 @@ |
|
|
|
<PackageTags>minio;cloud;storage</PackageTags> |
|
|
|
<RepositoryType>git</RepositoryType> |
|
|
|
<RepositoryUrl>https://github.com/minio/minio-dotnet</RepositoryUrl> |
|
|
|
<RuntimeIdentifiers>win-x64;win-arm64;linux-x64;linux-arm64;osx-x64</RuntimeIdentifiers> |
|
|
|
<RuntimeIdentifiers>win-x64;win-arm64;linux-x64;linux-arm64</RuntimeIdentifiers> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
|
|
@ -1,8 +1,8 @@ |
|
|
|
using System.Runtime.CompilerServices; |
|
|
|
|
|
|
|
[assembly: InternalsVisibleTo("Minio.Tests, PublicKey=" + |
|
|
|
"0024000004800000940000000602000000240000525341310004000001000100b5b1773b93a0a4" + |
|
|
|
"47624b0ba537a9f6b948a483c25f82b77c2d4025fc8d5b3151a5b2b0f5a00e7f8cec340430e809" + |
|
|
|
"fe196713be30b75fd5efa790a39357709cef50a7e073106a3b24964f2eb6139a95598165b65f37" + |
|
|
|
"be8ae65145afb9c4ba27bb85c310c52ed00435478f44368495a344ce688b9140ad0e8fea65ec00" + |
|
|
|
"a8912398")] |
|
|
|
"00240000048000009400000006020000002400005253413100040000010001009396768046e3e1" + |
|
|
|
"fb35eb63146875362d3c512e034ec54178e9b1d13fa146c5984507e3c0be9a8501364576705146" + |
|
|
|
"1ec27095f58fb11c49eca0a6ebe9513fb51f903033dbf5bdb1c8cef51201acdc6d0b40418e62a8" + |
|
|
|
"5e851fa69d07fc2bd192a614f39d57c9546c634e96f5671acc655a369fd2f933ed853a652cd4ee" + |
|
|
|
"2be93594")] |
|
|
@ -0,0 +1,20 @@ |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
set -x |
|
|
|
set -e |
|
|
|
for rid in $(echo win-x64 win-arm64 linux-x64 linux-arm64); do |
|
|
|
echo "restore & build for Release" |
|
|
|
dotnet build -r $rid --configuration Release ./Minio/Minio.csproj |
|
|
|
|
|
|
|
echo "Strong name sign assembly" |
|
|
|
if [ -f ./Minio/bin/Release/netstandard2.0/${rid}/Minio.dll ]; then |
|
|
|
echo "found" |
|
|
|
sn -R ./Minio/bin/Release/netstandard2.0/${rid}/Minio.dll ./Minio.snk |
|
|
|
fi |
|
|
|
|
|
|
|
if [ -f ./Minio/bin/Release/netstandard2.1/${rid}/Minio.dll ]; then |
|
|
|
sn -R ./Minio/bin/Release/netstandard2.1/${rid}/Minio.dll ./Minio.snk |
|
|
|
fi |
|
|
|
done |
|
|
|
|
|
|
|
dotnet pack ./Minio/Minio.csproj --no-build --configuration Release --output ./artifacts |