Skip to content

Commit 04f6b05

Browse files
committed
android build openssl specify target
1 parent df4575a commit 04f6b05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,16 @@ jobs:
118118
export TOOLCHAIN=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64
119119
export ARCH=${{ matrix.arch }}
120120
export PATH=$TOOLCHAIN/bin:$PATH
121+
TARGET=android-${{ matrix.arch == 'arm64-v8a' && 'arm64' || matrix.arch }}
121122
122-
./Configure android-${{ matrix.arch == 'arm64-v8a' && 'arm64' || matrix.arch }} \
123+
./Configure $TARGET \
123124
--prefix=$PWD/build \
124125
--openssldir=$PWD/build/ssl \
125126
no-shared \
126127
no-unit-test \
127128
-D__ANDROID_API__=26
128129
make
130+
make install_sw
129131
130132
cp build/lib/libssl.a $TOOLCHAIN/sysroot/usr/lib/
131133
cp build/lib/libcrypto.a $TOOLCHAIN/sysroot/usr/lib/

0 commit comments

Comments
 (0)