Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
committed Dec 22, 2021
1 parent 5e49c30 commit 8507f19
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions .github/workflows/build-tdlib-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,53 @@ jobs:
cd ..
mkdir -p ../output/$ABI/
cp build-$ABI/libtd*.so ../output/$ABI/libtdjson-arm64-v8a.so
cp build-$ABI/libtd*.so ../output/$ABI/libtdjson-$ABI.so
- name: Build Tdlib android armeabi-v7a
run: |
cd tddroid
cd build-folder
export ANDROID_SDK_ROOT=../ndk
export ABI="armeabi-v7a"
mkdir -p build-$ABI
cd build-$ABI
cmake .. -DCMAKE_TOOLCHAIN_FILE=${ANDROID_SDK_ROOT}/build/cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=MinSizeRel -GNinja -DANDROID_ABI=${ABI} || exit 1
cmake --build . || exit 1
cd ..
mkdir -p ../output/$ABI/
cp build-$ABI/libtd*.so ../output/libtdjson-$ABI.so
- name: Build Tdlib android x86_64
run: |
cd tddroid
cd build-folder
export ANDROID_SDK_ROOT=../ndk
export ABI="x86_64"
mkdir -p build-$ABI
cd build-$ABI
cmake .. -DCMAKE_TOOLCHAIN_FILE=${ANDROID_SDK_ROOT}/build/cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=MinSizeRel -GNinja -DANDROID_ABI=${ABI} || exit 1
cmake --build . || exit 1
cd ..
mkdir -p ../output/$ABI/
cp build-$ABI/libtd*.so ../output/libtdjson-$ABI.so
- name: Build Tdlib android x86
run: |
cd tddroid
cd build-folder
export ANDROID_SDK_ROOT=../ndk
export ABI="x86"
mkdir -p build-$ABI
cd build-$ABI
cmake .. -DCMAKE_TOOLCHAIN_FILE=${ANDROID_SDK_ROOT}/build/cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=MinSizeRel -GNinja -DANDROID_ABI=${ABI} || exit 1
cmake --build . || exit 1
cd ..
mkdir -p ../output/$ABI/
cp build-$ABI/libtd*.so ../output/libtdjson-$ABI.so
- name: Release
uses: ncipollo/release-action@v1
with:
tag: ${{ env.APP_VERSION }}
name: Tdlib Android Arm64
token: ${{ secrets.TOKEN }}
artifacts: 'tddroid/output/arm64-v8a/libtd*.so'
artifacts: 'tddroid/output/libtdjson*.so'

0 comments on commit 8507f19

Please sign in to comment.