diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae95fe9..6353051 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,7 +77,7 @@ jobs: ANDROID_NDK_ROOT: /opt/android-ndk-r28 run: | cd src/serai/hrf - sed -i 's/\[dependencies\]/[dependencies]\nopenssl = { version = "<=0.10.78", features = ["vendored"] }/' Cargo.toml + sed -i 's/\[dependencies\]/[dependencies]\nopenssl = { version = "<=0.10.78", features = ["vendored"] }\nopenssl-sys = "<=0.9.114"/' Cargo.toml cargo +1.71.0 ndk --target ${{ matrix.target }} --platform 21 build --release cp ../target/${{ matrix.target }}/release/libhrf_api.so \ ../../../frostdart-android-${{ matrix.abi }}.so diff --git a/scripts/android/build_all.sh b/scripts/android/build_all.sh index 93a6e48..1acf207 100755 --- a/scripts/android/build_all.sh +++ b/scripts/android/build_all.sh @@ -43,7 +43,8 @@ cd build/serai/hrf || exit # inject vendored openssl required for android cross compilation sed -i "s/\[dependencies\]/\[dependencies\]\\ -openssl = { version = \"<=0.10.78\", features = [\"vendored\"] }/" Cargo.toml +openssl = { version = \"<=0.10.78\", features = [\"vendored\"] }\\ +openssl-sys = \"<=0.9.114\"/" Cargo.toml rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android cargo ndk \