|
39 | 39 | arch: arm64-v8a |
40 | 40 | configure: |
41 | 41 | --host aarch64-linux-android29 |
42 | | - --with-openssl=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr |
| 42 | + --with-openssl |
| 43 | + --without-ca-bundle |
| 44 | + --without-ca-path |
43 | 45 | LIBS="-lssl -lcrypto" |
44 | 46 | AR=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar |
45 | 47 | AS=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-as |
|
56 | 58 | arch: x86_64 |
57 | 59 | configure: |
58 | 60 | --host x86_64-linux-android29 |
59 | | - --with-openssl=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr |
| 61 | + --with-openssl |
| 62 | + --without-ca-bundle |
| 63 | + --without-ca-path |
60 | 64 | LIBS="-lssl -lcrypto" |
61 | 65 | AR=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar |
62 | 66 | AS=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-as |
@@ -109,28 +113,6 @@ jobs: |
109 | 113 | tag: 'curl-8_12_1' |
110 | 114 | extract: true |
111 | 115 | fileName: curl-*.tar.gz |
112 | | - |
113 | | - - name: build openssl |
114 | | - if: matrix.name == 'android' |
115 | | - run: | |
116 | | - git clone https://github.com/openssl/openssl.git |
117 | | - cd openssl |
118 | | - export TOOLCHAIN=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64 |
119 | | - export ARCH=${{ matrix.arch }} |
120 | | - export PATH=$TOOLCHAIN/bin:$PATH |
121 | | -
|
122 | | - ./Configure android-${{ matrix.arch == 'arm64-v8a' && 'arm64' || matrix.arch }} \ |
123 | | - --prefix=$PWD/build \ |
124 | | - --openssldir=$PWD/build/ssl \ |
125 | | - no-shared \ |
126 | | - no-unit-test \ |
127 | | - -D__ANDROID_API__=29 |
128 | | - make |
129 | | - make install_sw |
130 | | -
|
131 | | - cp build/lib/libssl.a $TOOLCHAIN/sysroot/usr/lib/ |
132 | | - cp build/lib/libcrypto.a $TOOLCHAIN/sysroot/usr/lib/ |
133 | | - cp -r build/include/openssl $TOOLCHAIN/sysroot/usr/include/ |
134 | 116 |
|
135 | 117 | - name: build curl |
136 | 118 | run: | |
@@ -239,7 +221,7 @@ jobs: |
239 | 221 | export ${{ matrix.make }} |
240 | 222 | $CC sqlite-amalgamation-*/shell.c sqlite-amalgamation-*/sqlite3.c -o sqlite3 -ldl |
241 | 223 | # remove unused folders to save up space |
242 | | - rm -rf sqlite-amalgamation-*.zip sqlite-amalgamation-* curl-* openssl |
| 224 | + rm -rf sqlite-amalgamation-*.zip sqlite-amalgamation-* curl-* |
243 | 225 | echo "::endgroup::" |
244 | 226 |
|
245 | 227 | echo "::group::prepare the test script" |
|
0 commit comments