Skip to content

Commit

Permalink
ci: test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSnowfield committed Mar 23, 2024
1 parent 5e3943a commit 4afce1c
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 35 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pack-nuget.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:

- name: Publish
run: |
dotnet build -c Release Konata.Codec
dotnet pack -c Release Konata.Codec
dotnet pack -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg Konata.Codec
cd Konata.Codec
dotnet build Konata.Codec.csproj
dotnet pack -p:NuspecFile=Konata.Codec.nuspec && ls -al bin/Release
35 changes: 3 additions & 32 deletions Konata.Codec/Konata.Codec.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,12 @@
<TargetFramework>netstandard2.1</TargetFramework>
<OutputType>Library</OutputType>
<LangVersion>latest</LangVersion>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Authors>Konata Project</Authors>
<Company>Konata Project</Company>
<Product>Konata Codec</Product>
<Copyright>Konata Project (C) 2024</Copyright>
<RepositoryUrl>https://github.com/KonataDev/Konata.Codec</RepositoryUrl>
<Description>Audio &amp; Video codec library for Konata.</Description>
<PackageVersion>1.3.1</PackageVersion>
<NeutralLanguage>en-US</NeutralLanguage>
<Version>$(PackageVersion)</Version>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>.\$(OutDir)\Konata.Codec.xml</DocumentationFile>
<DocumentationFile>./bin/Konata.Codec.xml</DocumentationFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -28,27 +18,8 @@
</ItemGroup>

<ItemGroup>
<None Include="..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<None Include="./bin/runtimes/libSilkCodec-windows-x86_64.dll" Pack="true" PackagePath="runtimes/win-x64/native/SilkCodec.dll"/>
<None Include="./bin/runtimes/libSilkCodec-windows-x86.dll" Pack="true" PackagePath="runtimes/win-x86/native/SilkCodec.dll"/>
<None Include="./bin/runtimes/libSilkCodec-linux-musl-amd64.so" Pack="true" PackagePath="runtimes/linux-musl-x64/native/libSilkCodec.so"/>
<None Include="./bin/runtimes/libSilkCodec-linux-musl-arm64.so" Pack="true" PackagePath="runtimes/linux-musl-arm64/native/libSilkCodec.so"/>
<None Include="./bin/runtimes/libSilkCodec-linux-musl-arm.so" Pack="true" PackagePath="runtimes/linux-musl-arm/native/libSilkCodec.so"/>
<None Include="./bin/runtimes/libSilkCodec-linux-amd64.so" Pack="true" PackagePath="runtimes/linux-x64/native/libSilkCodec.so"/>
<None Include="./bin/runtimes/libSilkCodec-linux-arm.so" Pack="true" PackagePath="runtimes/linux-arm/native/libSilkCodec.so"/>
<None Include="./bin/runtimes/libSilkCodec-linux-arm64.so" Pack="true" PackagePath="runtimes/linux-arm64/native/libSilkCodec.so"/>
<None Include="./bin/runtimes/libSilkCodec-darwin-amd64.dylib" Pack="true" PackagePath="runtimes/osx-x64/native/libSilkCodec.dylib"/>
<None Include="./bin/runtimes/libSilkCodec-darwin-arm64.dylib" Pack="true" PackagePath="runtimes/osx-arm64/native/libSilkCodec.dylib"/>

<None Include="..\LICENSE"/>
<None Include="..\README.md"/>
</ItemGroup>

<!-- Get Build Stamp -->
Expand Down
39 changes: 39 additions & 0 deletions Konata.Codec/Konata.Codec.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>Konata.Codec</id>
<version>1.3.1</version>
<authors>Konata Project</authors>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<license type="file">LICENSE</license>
<licenseUrl>https://aka.ms/deprecateLicenseUrl</licenseUrl>
<description>Audio &amp; Video codec library for Konata.</description>
<copyright>Konata Project (C) 2024</copyright>
<repository type="git" url="https://github.com/KonataDev/Konata.Codec"/>
<dependencies>
<group targetFramework=".NETStandard2.1">
<dependency id="MP3Sharp" version="1.0.5" exclude="Build,Analyzers" />
<dependency id="NVorbis" version="0.10.5" exclude="Build,Analyzers" />
</group>
</dependencies>
<contentFiles>
<files include="bin/runtimes/*.*" buildAction="files" copyToOutput="true" flatten="true"/>
</contentFiles>
</metadata>
<files>
<file src="..\LICENSE" target="LICENSE"/>
<file src="..\README.md" target="README.md"/>
<file src="bin/Release/netstandard2.1/*" target="lib/netstandard2.1/"/>
<file src="bin/Konata.Codec.xml" target="lib/netstandard2.1/"/>
<file src="bin/runtimes/libSilkCodec-windows-x86_64.dll" target="runtimes/win-x64/native/libSilkCodec.dll"/>
<file src="bin/runtimes/libSilkCodec-windows-x86.dll" target="runtimes/win-x86/native/libSilkCodec.dll"/>
<file src="bin/runtimes/libSilkCodec-linux-musl-amd64.so" target="runtimes/linux-musl-x64/native/libSilkCodec.so"/>
<file src="bin/runtimes/libSilkCodec-linux-musl-arm64.so" target="runtimes/linux-musl-arm64/native/libSilkCodec.so"/>
<file src="bin/runtimes/libSilkCodec-linux-musl-arm.so" target="runtimes/linux-musl-arm/native/libSilkCodec.so"/>
<file src="bin/runtimes/libSilkCodec-linux-amd64.so" target="runtimes/linux-x64/native/libSilkCodec.so"/>
<file src="bin/runtimes/libSilkCodec-linux-arm.so" target="runtimes/linux-arm/native/libSilkCodec.so"/>
<file src="bin/runtimes/libSilkCodec-linux-arm64.so" target="runtimes/linux-arm64/native/libSilkCodec.so"/>
<file src="bin/runtimes/libSilkCodec-darwin-amd64.dylib" target="runtimes/osx-x64/native/libSilkCodec.dylib"/>
<file src="bin/runtimes/libSilkCodec-darwin-arm64.dylib" target="runtimes/osx-arm64/native/libSilkCodec.dylib"/>
</files>
</package>

0 comments on commit 4afce1c

Please sign in to comment.