diffoscope ldk-java-bins/"${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/"org.ldk.nupkg c_sharp/org.ldk.nupkg || echo
exit 1
fi
+ - name: Run test against C# release library
+ shell: bash
+ run: |
+ cd c_sharp
+ ln -s ./packaging_artifacts/runtimes/linux-x64/native/libldkcsharp.so ./
+ LD_LIBRARY_PATH=. dotnet run --project tests.csproj
+ LD_LIBRARY_PATH=. dotnet run --project tests.csproj --configuration Release
java_bindings:
runs-on: ubuntu-latest
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <TargetFramework>net6.0</TargetFramework>
+ <ImplicitUsings>enable</ImplicitUsings>
+ <Nullable>enable</Nullable>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ <OutputType>Exe</OutputType>
+ </PropertyGroup>
+
+</Project>
mono-csc -g -out:csharpldk.dll -langversion:3 -t:library -unsafe c_sharp/src/org/ldk/enums/*.cs c_sharp/src/org/ldk/impl/*.cs c_sharp/src/org/ldk/util/*.cs c_sharp/src/org/ldk/structs/*.cs
else
cd c_sharp
- dotnet build --configuration Release
+ dotnet build csharpldk.csproj --configuration Release
cd ..
fi