File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,13 @@ jobs:
258258 diffoscope ldk-java-bins/"${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/"org.ldk.nupkg c_sharp/org.ldk.nupkg || echo
259259 exit 1
260260 fi
261+ - name : Run test against C# release library
262+ shell : bash
263+ run : |
264+ cd c_sharp
265+ ln -s ./packaging_artifacts/runtimes/linux-x64/native/libldkcsharp.so ./
266+ LD_LIBRARY_PATH=. dotnet run --project tests.csproj
267+ LD_LIBRARY_PATH=. dotnet run --project tests.csproj --configuration Release
261268
262269 java_bindings :
263270 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+ <Project Sdk =" Microsoft.NET.Sdk" >
2+
3+ <PropertyGroup >
4+ <TargetFramework >net6.0</TargetFramework >
5+ <ImplicitUsings >enable</ImplicitUsings >
6+ <Nullable >enable</Nullable >
7+ <AllowUnsafeBlocks >true</AllowUnsafeBlocks >
8+ <OutputType >Exe</OutputType >
9+ </PropertyGroup >
10+
11+ </Project >
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ if [ "$2" = "c_sharp" ]; then
148148 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
149149 else
150150 cd c_sharp
151- dotnet build --configuration Release
151+ dotnet build csharpldk.csproj --configuration Release
152152 cd ..
153153 fi
154154
You can’t perform that action at this time.
0 commit comments