Let's attempt to fix the path to the library on GH Actions...
Some checks are pending
CI/CD / build (push) Waiting to run

This commit is contained in:
Felipe Cotti 2024-11-30 03:53:49 -03:00
parent 86b8025090
commit 57f1e2b75b
2 changed files with 14 additions and 6 deletions

View file

@ -24,6 +24,12 @@ jobs:
- name: Install tools
run: dotnet tool install --global vpk
- name: Build Core.Windows
run: dotnet build src/Plpext/Plpext.Core.Windows/Plpext.Core.Windows.csproj --configuration Release --no-restore
- name: Build UI
run: dotnet build src/Plpext/Plpext.UI/Plpext.UI.csproj --configuration Release --no-restore
- name: Dotnet publish
run: dotnet publish src/Plpext/Plpext.UI/Plpext.UI.csproj -c Release -r win-x64 -o publish

View file

@ -66,10 +66,12 @@
<None Remove="ViewModels\Mocks\**" />
</ItemGroup>
<Target Name="CopyOpenALToPublish" AfterTargets="Publish">
<Copy SourceFiles="$(MSBuildThisFileDirectory)..\..\Plpext.Core.Windows\bin\x64\Release\net8.0\OpenAL32.dll"
DestinationFolder="$(PublishDir)" />
<Message Text="OpenAL32.dll copied to publish directory: $(PublishDir)" Importance="high" />
</Target>
<ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)..\..\Plpext.Core.Windows\lib\x64\OpenAL32.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
<Link>OpenAL32.dll</Link>
</Content>
</ItemGroup>
</Project>