Add openssl patch

Add openssl patch

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2021-08-27 19:06:37 +02:00
parent ad924d922b
commit 8f4db25fc1

View File

@ -54,7 +54,7 @@ jobs:
stockfish_arg: "ARCH=armv7 COMP=ndk", stockfish_arg: "ARCH=armv7 COMP=ndk",
ninja: "no", ninja: "no",
ninja_arg: "", ninja_arg: "",
openssl: "yes", openssl: "no",
openssl_arg: "android-arm no-shared", openssl_arg: "android-arm no-shared",
} }
- { - {
@ -63,7 +63,7 @@ jobs:
stockfish_arg: "ARCH=armv8 COMP=ndk", stockfish_arg: "ARCH=armv8 COMP=ndk",
ninja: "no", ninja: "no",
ninja_arg: "", ninja_arg: "",
openssl: "yes", openssl: "no",
openssl_arg: "android-arm64 no-shared", openssl_arg: "android-arm64 no-shared",
} }
- { - {
@ -72,7 +72,7 @@ jobs:
stockfish_arg: "ARCH=x86-32 COMP=ndk", stockfish_arg: "ARCH=x86-32 COMP=ndk",
ninja: "no", ninja: "no",
ninja_arg: "", ninja_arg: "",
openssl: "yes", openssl: "no",
openssl_arg: "android-x86 no-shared", openssl_arg: "android-x86 no-shared",
} }
- { - {
@ -81,7 +81,7 @@ jobs:
stockfish_arg: "ARCH=x86-64 COMP=ndk", stockfish_arg: "ARCH=x86-64 COMP=ndk",
ninja: "no", ninja: "no",
ninja_arg: "", ninja_arg: "",
openssl: "yes", openssl: "no",
openssl_arg: "android-x86_64 no-shared", openssl_arg: "android-x86_64 no-shared",
} }
# Linux arm64/armv8 images # Linux arm64/armv8 images
@ -206,6 +206,10 @@ jobs:
ninja_arg: "", ninja_arg: "",
openssl: "yes", openssl: "yes",
openssl_arg: "linux-x86_64", openssl_arg: "linux-x86_64",
C-Plus-Plus: "yes",
C-Plus-Plus_arg: "",
fmt: "yes",
fmt_arg: "",
} }
- { - {
image: "linux-x64-tinycc", image: "linux-x64-tinycc",
@ -448,10 +452,29 @@ jobs:
run: | run: |
git clone --depth 1 --branch OpenSSL_1_1_1k https://github.com/openssl/openssl.git git clone --depth 1 --branch OpenSSL_1_1_1k https://github.com/openssl/openssl.git
cd openssl cd openssl
wget https://github.com/mavlink/MAVSDK/blob/main/third_party/openssl/dockcross-android.patch
patch -p 0 < dockcross-android.patch
./../tools/dockcross-command.sh ${{ matrix.arch_name.image }} ./Configure ${{ matrix.arch_name.openssl_arg }} ./../tools/dockcross-command.sh ${{ matrix.arch_name.image }} ./Configure ${{ matrix.arch_name.openssl_arg }}
./../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} -j2 ./../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} -j2
cd .. cd ..
rm -rf openssl rm -rf openssl
- name: C-Plus-Plus build test
if: ${{ matrix.arch_name.C-Plus-Plus == 'yes' }}
run: |
git clone https://github.com/TheAlgorithms/C-Plus-Plus.git
cd C-Plus-Plus
git checkout c3b07aed2240e5364e1a49d091a00b61f520e653
./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.C-Plus-Plus_arg }}
cd ..
rm -rf C-Plus-Plus
- name: C-Plus-Plus build test
if: ${{ matrix.arch_name.fmt == 'yes' }}
run: |
git clone --depth 1 --branch 8.0.1 https://github.com/fmtlib/fmt.git
cd fmt
./../tools/dockcross-cmake-builder.sh ${{ matrix.arch_name.image }} ${{ matrix.arch_name.fmt_arg }} -DFMT_DOC=OFF
cd ..
rm -rf fmt
- name: deploy - name: deploy
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
run: | run: |