Skip to content

remove trust points #4704

remove trust points

remove trust points #4704

Workflow file for this run

name: Android
on:
push:
branches: [ RC_2_1, master ]
paths-ignore:
- bindings/python/**
pull_request:
paths-ignore:
- bindings/python/**
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: true
env:
NDK_VERSION: "r27c"
OPENSSL_VERSION: "3.4.0"
OPENSSL_OPTS: "no-deprecated no-shared no-makedepend -fvisibility=hidden -O3"
jobs:
android_arm32_build:
name: Build Android Arm 32bits
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v6
with:
submodules: true
fetch-depth: 1
filter: tree:0
- name: install boost
run: |
git clone --depth=1 --branch=boost-1.86.0 https://github.com/boostorg/boost.git
cd boost
git submodule update --init --depth=1
./bootstrap.sh
./b2 headers
cd ..
- name: install ndk
run: |
wget -nv -O android-ndk.zip https://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux.zip
unzip -qq android-ndk.zip
- name: install openssl
run: |
export NDK=${PWD}/android-ndk-${NDK_VERSION}
export ANDROID_NDK_ROOT=${NDK}
export PATH=${NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin:${PATH}
wget -nv -O openssl.tar.gz https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz
tar xzf openssl.tar.gz
cd openssl-${OPENSSL_VERSION}
./Configure android-arm ${OPENSSL_OPTS} -D__ANDROID_API__=21 -march=armv7-a -mfpu=neon -fPIC --prefix=${PWD}/../openssl
make &> /dev/null
make install_sw &> /dev/null
cd ..
- name: build library
run: |
export NDK=${PWD}/android-ndk-${NDK_VERSION}
export BOOST_ROOT=${PWD}/boost
export OPENSSL_ROOT=${PWD}/openssl
echo "boost-build ${BOOST_ROOT}/tools/build/src ;" > boost-build.jam
echo "using clang-linux : arm : ${NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++
<cxxflags>-fPIC
<cxxflags>-march=armv7-a
<cxxflags>-mfpu=neon ;" >>~/user-config.jam;
${BOOST_ROOT}/b2 warnings-as-errors=on toolset=clang-linux-arm target-os=android link=static crypto=openssl openssl-include=${OPENSSL_ROOT}/include openssl-lib=${OPENSSL_ROOT}/lib webtorrent=off
android_arm32_webtorrent_build:
name: Build Android Arm 32bits with WebTorrent
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: install boost
run: |
git clone --depth=1 --branch=boost-1.86.0 https://github.com/boostorg/boost.git
cd boost
git submodule update --init --depth=1
./bootstrap.sh
./b2 headers
cd ..
- name: install ndk
run: |
wget -nv -O android-ndk.zip https://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux.zip
unzip -qq android-ndk.zip
- name: install openssl
run: |
export NDK=${PWD}/android-ndk-${NDK_VERSION}
export ANDROID_NDK_ROOT=${NDK}
export PATH=${NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin:${PATH}
wget -nv -O openssl.tar.gz https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz
tar xzf openssl.tar.gz
cd openssl-${OPENSSL_VERSION}
./Configure android-arm ${OPENSSL_OPTS} -D__ANDROID_API__=28 -march=armv7-a -mfpu=neon -fPIC --prefix=${PWD}/../openssl
make &> /dev/null
make install_sw &> /dev/null
cd ..
- name: build library
run: |
export NDK=${PWD}/android-ndk-${NDK_VERSION}
export BOOST_ROOT=${PWD}/boost
export OPENSSL_ROOT=${PWD}/openssl
echo "boost-build ${BOOST_ROOT}/tools/build/src ;" > boost-build.jam
echo "using clang-linux : arm : ${NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi28-clang++
<cxxflags>-fPIC
<cxxflags>-march=armv7-a
<cxxflags>-mfpu=neon ;" >>~/user-config.jam;
${BOOST_ROOT}/b2 warnings-as-errors=on toolset=clang-linux-arm target-os=android link=static crypto=openssl openssl-include=${OPENSSL_ROOT}/include openssl-lib=${OPENSSL_ROOT}/lib webtorrent=on