CI-built jar only includes linux yoga natives
Bluexin opened this issue ยท 2 comments
LibrarianLib/modules/facade/build.gradle
Lines 2 to 12 in 05dec69
along with
LibrarianLib/modules/facade/build.gradle
Lines 24 to 26 in 05dec69
mean only natives for the OS used for the build will get included.
In dev liblib workspaces this is okay, but for the published jars it's not great.
And even once natives are present, native method lookup fails because of the shading (see crash)
java.lang.UnsatisfiedLinkError: ll.org.lwjgl.util.yoga.Yoga.YGConfigNew()J
at ll.org.lwjgl.util.yoga.Yoga.YGConfigNew(Native Method) ~[librarianlib-facade-1.15-SNAPSHOT.jar:5.0.0a2] {re:classloading}
at com.teamwizardry.librarianlib.facade.layer.GuiLayer.<clinit>(GuiLayer.kt:1740) ~[librarianlib-facade-1.15-SNAPSHOT.jar:5.0.0a2] {re:classloading}
at com.teamwizardry.librarianlib.facade.FacadeWidget.<init>(FacadeWidget.kt:23) ~[librarianlib-facade-1.15-SNAPSHOT.jar:5.0.0a2] {re:classloading}
at com.teamwizardry.librarianlib.facade.FacadeScreen.<init>(FacadeScreen.kt:26) ~[librarianlib-facade-1.15-SNAPSHOT.jar:5.0.0a2] {re:classloading}