mirror of
https://github.com/pgpainless/pgpainless.git
synced 2026-10-21 01:27:17 +02:00
Install prerequisites:
sudo dnf install gcc glibc-devel zlib-devel libstdc++-static
Fixup LD_LIBRARY_PATH:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/graalvm/lib
Run the tests with tracing agent enabled, copy the generated metadata over and compile the native image
gradle -Pagent test && gradle metadataCopy --task test --dir src/main/resources/META-INF/native-image && gradle nativeCompile
Build native image:
gradle clean build nativeCompile
Output: pgpainless-cli/build/native/nativeCompile/pgpainless-cli