Add step to link libjvm for Ubuntu builds

Introduces a workflow step to create a symlink for libjvm.so on Ubuntu 22.04, ensuring the Java backend build can discover the JVM library. This addresses potential issues with library discovery during CI builds.
This commit is contained in:
Ludy87
2025-11-30 21:25:39 +01:00
parent c2648e20b7
commit 0e292a4d07
+12
View File
@@ -119,6 +119,18 @@ jobs:
java-version: "21"
distribution: "temurin"
- name: Make libjvm discoverable (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
run: |
JAVA_LIBJVM="$JAVA_HOME/lib/server/libjvm.so"
if [ -f "$JAVA_LIBJVM" ]; then
sudo ln -sf "$JAVA_LIBJVM" /usr/lib/libjvm.so
echo "Linked libjvm from $JAVA_LIBJVM"
else
echo "libjvm not found at $JAVA_LIBJVM"
exit 1
fi
- name: Build Java backend with JLink
working-directory: ./
shell: bash