Skip to content

Commit

Permalink
Bump source generators and fix ci script
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
Xpl0itR committed Jul 10, 2024
1 parent d054bb8 commit a017c8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ jobs:
dotnet-version: '8.0.x'

- name: Build native library (win-x64)
run: msbuild include/build/vs2022win10/libopenmpt.sln /m /t:libopenmpt /p:Platform=x64;Configuration=ReleaseShared
run: msbuild include/build/vs2022win10/libopenmpt.sln /m /t:libopenmpt /p:Platform=x64 /p:Configuration=ReleaseShared

- name: Build managed library and nuget package
run: dotnet pack -c Release /p:ContinuousIntegrationBuild=true;VersionPrefix=${{ needs.check-upstream.outputs.version }}.0
run: dotnet pack -c Release /p:ContinuousIntegrationBuild=true /p:VersionPrefix=${{ needs.check-upstream.outputs.version }}.0

- name: Upload nuget package
run: dotnet nuget push bin/LibOpenMPT.NET/Release/*nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.event.repository.name }}/index.json
run: dotnet nuget push bin/LibOpenMPT.NET/Release/LibOpenMPT.NET.${{ needs.check-upstream.outputs.version }}.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.event.repository.owner.login }}/index.json
5 changes: 3 additions & 2 deletions source/LibOpenMPT.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<Authors>Xpl0itR</Authors>
<BaseOutputPath>$(SolutionDir)bin/$(MSBuildProjectName)</BaseOutputPath>
<Copyright>Copyright © 2024 Xpl0itR</Copyright>
<DebugType>Embedded</DebugType>
<Description>A mostly source-generated, blittable bindings library wrapping libopenmpt using ClangSharp's PInvokeGenerator and csbindgen's GroupedNativeMethodsGenerator, targeting .NET 8.0 and .NET Standard 2.0</Description>
<EnableTrimAnalyzer Condition="'$(TargetFramework)' == 'net8.0'">true</EnableTrimAnalyzer>
<IncludeSymbols>true</IncludeSymbols>
Expand All @@ -20,8 +21,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ClangSharpPInvokeGenerator" Version="17.0.1" ExcludeAssets="All" />
<PackageReference Include="csbindgen" Version="1.9.1" PrivateAssets="All" />
<PackageReference Include="ClangSharpPInvokeGenerator" Version="18.1.0" ExcludeAssets="All" />
<PackageReference Include="csbindgen" Version="1.9.2" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
</ItemGroup>
Expand Down

0 comments on commit a017c8d

Please sign in to comment.