Compare commits

...

2 commits

View file

@ -67,7 +67,8 @@ fi
export RUSTFLAGS="-C target-feature=-crt-static" export RUSTFLAGS="-C target-feature=-crt-static"
title 'Building reqwest-jni' title 'Building reqwest-jni'
cd_and_exec reqwest4j/reqwest-jni cargo build --release cd_and_exec reqwest4j/reqwest-jni \
cargo build --release --target x86_64-unknown-linux-musl
title 'Building reqwest4j without Rust library...' title 'Building reqwest4j without Rust library...'
cd_and_exec reqwest4j ./gradlew shadowJar cd_and_exec reqwest4j ./gradlew shadowJar
@ -91,7 +92,7 @@ cd_and_exec reqwest4j/build/libs \
REQJNI_NAME="libreqwest.so" REQJNI_NAME="libreqwest.so"
REQJNI="$WORKDIR/$REQJNI_NAME" REQJNI="$WORKDIR/$REQJNI_NAME"
cd_and_exec reqwest4j/reqwest-jni/target/release \ cd_and_exec reqwest4j/reqwest-jni/target/x86_64-unknown-linux-musl/release \
cp libreqwest_jni.so "$REQJNI" cp libreqwest_jni.so "$REQJNI"
# Create JAR native libraries tree # Create JAR native libraries tree