jni-rs / jni-sys

Apache License 2.0
53 stars 19 forks source link

Avoid checking more recent version constants in systest #33

Closed rib closed 10 months ago

rib commented 10 months ago

This fixes CI and avoids needing a bleeding edge jni.h

Since adding the JNI_VERSION_19 - _21 constants then systest will fail to build, unless these constants are found in jni.h.

This adds jni19,jni20 and jni21 feature flags for systest so we can skip checking for the corresponding JNI_VERSION constants unless we know we have a suitably recent version of Java installed.

CI will now install temurin v20 so it can enable the jni19 and jni20 features.