android:
runs-on: ubuntu-latest
# Frankly, I'm not really sure why debian and ubuntu differ in the results here, they really shouldn't
- container: debian:bullseye
+ container: debian:bookworm
strategy:
fail-fast: false
steps:
COMMON_COMPILE="$CC -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-unused-function -Wno-nullability-completeness -Wno-pointer-sign -Wdate-time -ffile-prefix-map=$(pwd)="
COMMON_CC=""
-if [[ "$TARGET_STRING" != *"android" ]]; then
- [[ "$TARGET_STRING" != "x86"* ]] && COMMON_CC="$COMMON_CC --target=$TARGET_STRING -mcpu=$LDK_TARGET_CPU"
- [[ "$TARGET_STRING" = "x86"* ]] && COMMON_CC="$COMMON_CC --target=$TARGET_STRING -march=$LDK_TARGET_CPU -mtune=$LDK_TARGET_CPU"
+if [[ "$TARGET_STRING" != *"android" && "$TARGET_STRING" != *"androideabi" ]]; then
+ [[ "$TARGET_STRING" != "x86"* ]] && COMMON_CC="$COMMON_CC --target=$TARGET_STRING"
+ [[ "$TARGET_STRING" = "x86"* ]] && COMMON_CC="$COMMON_CC --target=$TARGET_STRING"
fi
+[[ "$TARGET_STRING" != "x86"* ]] && COMMON_CC="$COMMON_CC -mcpu=$LDK_TARGET_CPU"
+[[ "$TARGET_STRING" = "x86"* ]] && COMMON_CC="$COMMON_CC -march=$LDK_TARGET_CPU -mtune=$LDK_TARGET_CPU"
[ "$IS_MAC" = "true" -a "$MACOS_SDK" != "" ] && COMMON_COMPILE="$COMMON_COMPILE -isysroot $MACOS_SDK"
DEBUG_ARG="$3"
*/
LDKBlindedFailure_FromBlindedNode,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKBolt11SemanticError_ImpreciseAmount,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKBolt12SemanticError_MissingSignature,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKCOption_NoneZ_None,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKChannelMonitorUpdateStatus_UnrecoverableError,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKChannelShutdownState_ShutdownComplete,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKConfirmationTarget_ChannelCloseMinimum,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKCreationError_MinFinalCltvExpiryDeltaTooShort,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKCurrency_Signet,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKHTLCClaim_Revocation,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
LDKIOError_Other,
LDKIOError_UnexpectedEof,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKLevel_Error,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKNetwork_Signet,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKPaymentFailureReason_UnexpectedError,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKRecipient_PhantomNode,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKRetryableSendFailure_DuplicatePayment,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKSecp256k1Error_InvalidParityValue,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKSiPrefix_Pico,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKSocketAddressParseError_InvalidOnionV3,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
*/
LDKUtxoLookupError_UnknownTx,
; static native void init();
- static { init(); }
+ static { org.ldk.impl.bindings.run_statics(); init(); }
}
\ No newline at end of file
// Fetching the LDK versions from C also checks that the header and binaries match
System.err.println("Loaded LDK-Java Bindings " + version.get_ldk_java_bindings_version() + " with LDK " + get_ldk_version() + " and LDK-C-Bindings " + get_ldk_c_bindings_version());
}
+ public static void run_statics() { /* Useful to force the statics to run */ }
static native void init(java.lang.Class c);
static native void init_class_cache();
static native String get_lib_version_string();