@@ -250,6 +250,15 @@ jobs:
250
250
with :
251
251
name : org.ldk.nupkg
252
252
path : c_sharp/org.ldk.nupkg
253
+ - name : Run test against C# release library
254
+ shell : bash
255
+ run : |
256
+ cd c_sharp
257
+ sed 's/net.\.0/net9.0/' -i tests.csproj
258
+ ln -s ./packaging_artifacts/runtimes/linux-x64/native/libldkcsharp.so ./
259
+ LD_LIBRARY_PATH=. dotnet run --project tests.csproj
260
+ LD_LIBRARY_PATH=. dotnet run --project tests.csproj --configuration Release
261
+ git checkout tests.csproj
253
262
- name : Check latest auto-generated code is in git
254
263
run : |
255
264
# Checkout files that get updated with version information
@@ -275,16 +284,9 @@ jobs:
275
284
export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
276
285
if ! diff ldk-java-bins/"${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/"org.ldk.nupkg c_sharp/org.ldk.nupkg; then
277
286
dnf -y install diffoscope mono-devel
278
- diffoscope ldk-java-bins/"${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/"org.ldk.nupkg c_sharp/org.ldk.nupkg || echo
287
+ diffoscope --max-diff-input-lines 0 ldk-java-bins/"${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/"org.ldk.nupkg c_sharp/org.ldk.nupkg || echo
279
288
exit 1
280
289
fi
281
- - name : Run test against C# release library
282
- shell : bash
283
- run : |
284
- cd c_sharp
285
- ln -s ./packaging_artifacts/runtimes/linux-x64/native/libldkcsharp.so ./
286
- LD_LIBRARY_PATH=. dotnet run --project tests.csproj
287
- LD_LIBRARY_PATH=. dotnet run --project tests.csproj --configuration Release
288
290
289
291
osx_c_sharp :
290
292
strategy :
@@ -628,15 +630,18 @@ jobs:
628
630
shell : bash
629
631
run : |
630
632
export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
633
+ SOME_DIFF=0
631
634
for F in liblightningjni_MacOSX-{x86_64,aarch64}{,-leaktracking}.nativelib; do
632
635
if ! diff "ldk-java-bins/${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/$F" "src/main/resources/$F"; then
633
636
apt-get -y install diffoscope
634
637
# Sadly these binaries are still non-deterministic, but only due
635
638
# to a few-byte tag, thus we use diffoscope to ensure there
636
- # aren't any "real" differences and move on .
639
+ # aren't any "real" differences but still fail the job .
637
640
diffoscope "ldk-java-bins/${LDK_GARBAGECOLLECTED_GIT_OVERRIDE}/$F" "src/main/resources/$F" || echo
641
+ SOME_DIFF=1
638
642
fi
639
643
done
644
+ exit $SOME_DIFF
640
645
641
646
android :
642
647
runs-on : ubuntu-latest
0 commit comments