Skip to content

Commit 05b368e

Browse files
committed
fix: Enhanced SkiaSharp dependencies for .NET 10.0
- Add additional system libraries required for SkiaSharp on .NET 10.0 - Install libglib2.0-0, libgtk-3-0, libxss1, libasound2-dev - Set LD_LIBRARY_PATH environment variable for tests - Fix DllNotFoundException for libSkiaSharp in .NET 10.0 runtime - Ensure SkiaSharp native libraries can be found by the runtime
1 parent 66dfb8e commit 05b368e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci-build-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
run: |
3636
sudo apt-get update
3737
sudo apt-get install -y libfontconfig1 libfreetype6 libx11-6 libxext6 libxrender1 libxtst6
38+
# Additional dependencies for .NET 10.0 SkiaSharp
39+
sudo apt-get install -y libglib2.0-0 libgtk-3-0 libxss1 libasound2-dev
3840
3941
- name: Cache NuGet Packages
4042
uses: actions/cache@v5
@@ -55,6 +57,8 @@ jobs:
5557
dotnet build QRCoder.Core.sln --no-restore --configuration Release --verbosity minimal
5658
5759
- name: Run Tests
60+
env:
61+
LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu:/usr/local/lib
5862
run: |
5963
echo "Running tests for QRCoder.Core.sln"
6064
dotnet test QRCoder.Core.Tests/ \

0 commit comments

Comments
 (0)