mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 05:10:16 +03:00
Add macOS-specific fallback and validation when resolving JAVA_HOME in the GitHub Action. If no mapped JAVA_HOME exists, the action will use the runner's JAVA_HOME when the runner architecture matches the requested architecture. Also verify the java binary's CPU architecture (x86_64 vs arm64) with the file command and clear java_home on mismatch. Keeps the existing /usr/libexec/java_home x86_64 fallback and preserves the original error path when no suitable JDK is found.