I have mixed news on the building native images on github actions CI nodes.
I can build the native images fine. Based the config off @plexus and @liquidz.uo github actions
but then I added in some debug into the application itself to look at how it was running on a mac (I dont have a mac), and actually ran the resulting binary on the CI nodes
both the macos binary and the ubuntu binary fail. I'll get to where in a minute.
This was weird because I run ubuntu on my local machine, and the exact same build worked fine there
so I tried building and running the mac image on a Circle CI node (where I normally build) and the binary built fine and then ran perfectly
so heres the debug run failing on the mac image on github: https://github.com/retrogradeorbit/decloj/runs/717352355
and heres the same commit succeeding on circleci: https://app.circleci.com/pipelines/github/retrogradeorbit/decloj/5/workflows/6569ef79-9109-42c4-ae5a-03cef9e345a0/jobs/11
build/decloj --load
writing 47160 bytes to /Users/distiller/.decloj/libs/libjnijavacpp.dylib
writing 499428 bytes to /Users/distiller/.decloj/libs/libQt5DBus.5.dylib
symlinking /Users/distiller/.decloj/libs/libQt5DBus.dylib to libQt5DBus.5.dylib
writing 6196572 bytes to /Users/distiller/.decloj/libs/libQt5Gui.5.dylib
symlinking /Users/distiller/.decloj/libs/libQt5Gui.dylib to libQt5Gui.5.dylib
writing 5989400 bytes to /Users/distiller/.decloj/libs/libQt5Widgets.5.dylib
symlinking /Users/distiller/.decloj/libs/libQt5Widgets.dylib to libQt5Widgets.5.dylib
writing 311744 bytes to /Users/distiller/.decloj/libs/libQt5PrintSupport.5.dylib
symlinking /Users/distiller/.decloj/libs/libQt5PrintSupport.dylib to libQt5PrintSupport.5.dylib
writing 6439444 bytes to /Users/distiller/.decloj/libs/libQt5Core.5.dylib
symlinking /Users/distiller/.decloj/libs/libQt5Core.dylib to libQt5Core.5.dylib
writing 472636 bytes to /Users/distiller/.decloj/libs/libjniQt5Core.dylib
writing 883240 bytes to /Users/distiller/.decloj/libs/libjniQt5Widgets.dylib
writing 1816204 bytes to /Users/distiller/.decloj/libs/libqcocoa.dylib
writing 24096 bytes to /Users/distiller/.decloj/libs/libcocoaprintersupport.dylib
writing 67096 bytes to /Users/distiller/.decloj/libs/libqxdgdesktopportal.dylib
writing 971808 bytes to /Users/distiller/.decloj/libs/libqminimal.dylib
writing 990372 bytes to /Users/distiller/.decloj/libs/libqoffscreen.dylib
writing 39024 bytes to /Users/distiller/.decloj/libs/libqgif.dylib
writing 33072 bytes to /Users/distiller/.decloj/libs/libqico.dylib
writing 424016 bytes to /Users/distiller/.decloj/libs/libqjpeg.dylib
writing 139440 bytes to /Users/distiller/.decloj/libs/libjniQt5Gui.dylib
setting java.library.path to: /Users/distiller/.decloj/libs
resources
=========
"org/bytedeco/javacpp/macosx-x86_64/libjnijavacpp.dylib" #object[<http://java.net|java.net>.URL 0x24513d45 "<<resource:org/bytedeco/javacpp/macosx-x86_64/libjnijavacpp.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libQt5DBus.5.dylib" #object[<http://java.net|java.net>.URL 0x7cf22c1c "<<resource:org/bytedeco/qt/macosx-x86_64/libQt5DBus.5.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libQt5Gui.5.dylib" #object[<http://java.net|java.net>.URL 0x4f4dca57 "<<resource:org/bytedeco/qt/macosx-x86_64/libQt5Gui.5.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libQt5Widgets.5.dylib" #object[<http://java.net|java.net>.URL 0x2480fa35 "<<resource:org/bytedeco/qt/macosx-x86_64/libQt5Widgets.5.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libQt5PrintSupport.5.dylib" #object[<http://java.net|java.net>.URL 0x6fbaad76 "<<resource:org/bytedeco/qt/macosx-x86_64/libQt5PrintSupport.5.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libQt5Core.5.dylib" #object[<http://java.net|java.net>.URL 0x1661f8c9 "<<resource:org/bytedeco/qt/macosx-x86_64/libQt5Core.5.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libjniQt5Core.dylib" #object[<http://java.net|java.net>.URL 0x3ca00b39 "<<resource:org/bytedeco/qt/macosx-x86_64/libjniQt5Core.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libjniQt5Widgets.dylib" #object[<http://java.net|java.net>.URL 0x34389867 "<<resource:org/bytedeco/qt/macosx-x86_64/libjniQt5Widgets.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libqcocoa.dylib" #object[<http://java.net|java.net>.URL 0x76c27667 "<<resource:org/bytedeco/qt/macosx-x86_64/libqcocoa.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libcocoaprintersupport.dylib" #object[<http://java.net|java.net>.URL 0x3ef96f67 "<<resource:org/bytedeco/qt/macosx-x86_64/libcocoaprintersupport.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libqxdgdesktopportal.dylib" #object[<http://java.net|java.net>.URL 0x62aff656 "<<resource:org/bytedeco/qt/macosx-x86_64/libqxdgdesktopportal.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libqminimal.dylib" #object[<http://java.net|java.net>.URL 0x24204f31 "<<resource:org/bytedeco/qt/macosx-x86_64/libqminimal.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libqoffscreen.dylib" #object[<http://java.net|java.net>.URL 0x2da5ea65 "<<resource:org/bytedeco/qt/macosx-x86_64/libqoffscreen.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libqgif.dylib" #object[<http://java.net|java.net>.URL 0xc21010c "<<resource:org/bytedeco/qt/macosx-x86_64/libqgif.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libqico.dylib" #object[<http://java.net|java.net>.URL 0x57aac7e6 "<<resource:org/bytedeco/qt/macosx-x86_64/libqico.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libqjpeg.dylib" #object[<http://java.net|java.net>.URL 0x2770b996 "<<resource:org/bytedeco/qt/macosx-x86_64/libqjpeg.dylib>>"]
"org/bytedeco/qt/macosx-x86_64/libjniQt5Gui.dylib" #object[<http://java.net|java.net>.URL 0x58309a96 "<<resource:org/bytedeco/qt/macosx-x86_64/libjniQt5Gui.dylib>>"]
loading: jnijavacpp
loading: Qt5DBus
loading: Qt5Gui
loading: Qt5Widgets
loading: Qt5PrintSupport
loading: Qt5Core
loading: jniQt5Core
loading: jniQt5Widgets
loading: qcocoa
loading: cocoaprintersupport
loading: qxdgdesktopportal
loading: qminimal
loading: qoffscreen
loading: qgif
loading: qico
loading: qjpeg
loading: jniQt5Gui
done
build/decloj --load
writing 47160 bytes to /Users/runner/.decloj/libs/libjnijavacpp.dylib
writing 499428 bytes to /Users/runner/.decloj/libs/libQt5DBus.5.dylib
symlinking /Users/runner/.decloj/libs/libQt5DBus.dylib to libQt5DBus.5.dylib
writing 6196572 bytes to /Users/runner/.decloj/libs/libQt5Gui.5.dylib
symlinking /Users/runner/.decloj/libs/libQt5Gui.dylib to libQt5Gui.5.dylib
writing 5989400 bytes to /Users/runner/.decloj/libs/libQt5Widgets.5.dylib
symlinking /Users/runner/.decloj/libs/libQt5Widgets.dylib to libQt5Widgets.5.dylib
writing 311744 bytes to /Users/runner/.decloj/libs/libQt5PrintSupport.5.dylib
symlinking /Users/runner/.decloj/libs/libQt5PrintSupport.dylib to libQt5PrintSupport.5.dylib
writing 6439444 bytes to /Users/runner/.decloj/libs/libQt5Core.5.dylib
symlinking /Users/runner/.decloj/libs/libQt5Core.dylib to libQt5Core.5.dylib
writing 472636 bytes to /Users/runner/.decloj/libs/libjniQt5Core.dylib
writing 883240 bytes to /Users/runner/.decloj/libs/libjniQt5Widgets.dylib
writing 1816204 bytes to /Users/runner/.decloj/libs/libqcocoa.dylib
writing 24096 bytes to /Users/runner/.decloj/libs/libcocoaprintersupport.dylib
writing 67096 bytes to /Users/runner/.decloj/libs/libqxdgdesktopportal.dylib
writing 971808 bytes to /Users/runner/.decloj/libs/libqminimal.dylib
writing 990372 bytes to /Users/runner/.decloj/libs/libqoffscreen.dylib
writing 39024 bytes to /Users/runner/.decloj/libs/libqgif.dylib
writing 33072 bytes to /Users/runner/.decloj/libs/libqico.dylib
writing 424016 bytes to /Users/runner/.decloj/libs/libqjpeg.dylib
writing 139440 bytes to /Users/runner/.decloj/libs/libjniQt5Gui.dylib
setting java.library.path to: /Users/runner/.decloj/libs
resources
=========
"org/bytedeco/javacpp/macosx-x86_64/libjnijavacpp.dylib" #object[<http://java.net|java.net>.URL 0x76fce8f7 "<resource:org/bytedeco/javacpp/macosx-x86_64/libjnijavacpp.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libQt5DBus.5.dylib" #object[<http://java.net|java.net>.URL 0x3b032037 "<resource:org/bytedeco/qt/macosx-x86_64/libQt5DBus.5.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libQt5Gui.5.dylib" #object[<http://java.net|java.net>.URL 0x474b147e "<resource:org/bytedeco/qt/macosx-x86_64/libQt5Gui.5.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libQt5Widgets.5.dylib" #object[<http://java.net|java.net>.URL 0x2b95e7e4 "<resource:org/bytedeco/qt/macosx-x86_64/libQt5Widgets.5.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libQt5PrintSupport.5.dylib" #object[<http://java.net|java.net>.URL 0x4c22ec18 "<resource:org/bytedeco/qt/macosx-x86_64/libQt5PrintSupport.5.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libQt5Core.5.dylib" #object[<http://java.net|java.net>.URL 0x1351cb8d "<resource:org/bytedeco/qt/macosx-x86_64/libQt5Core.5.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libjniQt5Core.dylib" #object[<http://java.net|java.net>.URL 0x703fa4a8 "<resource:org/bytedeco/qt/macosx-x86_64/libjniQt5Core.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libjniQt5Widgets.dylib" #object[<http://java.net|java.net>.URL 0x3c2f8908 "<resource:org/bytedeco/qt/macosx-x86_64/libjniQt5Widgets.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libqcocoa.dylib" #object[<http://java.net|java.net>.URL 0x44b92116 "<resource:org/bytedeco/qt/macosx-x86_64/libqcocoa.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libcocoaprintersupport.dylib" #object[<http://java.net|java.net>.URL 0x15edf654 "<resource:org/bytedeco/qt/macosx-x86_64/libcocoaprintersupport.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libqxdgdesktopportal.dylib" #object[<http://java.net|java.net>.URL 0x6206e86c "<resource:org/bytedeco/qt/macosx-x86_64/libqxdgdesktopportal.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libqminimal.dylib" #object[<http://java.net|java.net>.URL 0xedcc6fe "<resource:org/bytedeco/qt/macosx-x86_64/libqminimal.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libqoffscreen.dylib" #object[<http://java.net|java.net>.URL 0xdb51856 "<resource:org/bytedeco/qt/macosx-x86_64/libqoffscreen.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libqgif.dylib" #object[<http://java.net|java.net>.URL 0x691da197 "<resource:org/bytedeco/qt/macosx-x86_64/libqgif.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libqico.dylib" #object[<http://java.net|java.net>.URL 0x65110102 "<resource:org/bytedeco/qt/macosx-x86_64/libqico.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libqjpeg.dylib" #object[<http://java.net|java.net>.URL 0x189bd86b "<resource:org/bytedeco/qt/macosx-x86_64/libqjpeg.dylib>"]
"org/bytedeco/qt/macosx-x86_64/libjniQt5Gui.dylib" #object[<http://java.net|java.net>.URL 0x677fd152 "<resource:org/bytedeco/qt/macosx-x86_64/libjniQt5Gui.dylib>"]
loading: jnijavacpp
No Java runtime present, requesting install.
make: *** [test-bin] Error 97
##[error]Process completed with exit code 2.
just something I thought graalvm people should be aware of. There may be issues running your native-image builds to test them on GH actions