Skip to content

Commit 95f48bf

Browse files
Update build.yml
1 parent 715340f commit 95f48bf

File tree

1 file changed

+24
-25
lines changed

1 file changed

+24
-25
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
1-
name: Auto Build ARM Wheel (Beta)
1+
name: Fast Termux Native Build
22

3-
on:
4-
workflow_dispatch:
5-
inputs:
6-
package:
7-
description: "PyPI package name"
8-
required: true
9-
version:
10-
description: "Package version (empty = latest)"
11-
required: false
12-
python:
13-
description: "Python selector"
14-
required: true
15-
default: "cp311-*"
16-
arch:
17-
description: "CPU architecture"
18-
required: true
19-
default: "aarch64"
3+
on: [push]
204

215
jobs:
226
build:
237
runs-on: ubuntu-latest
24-
timeout-minutes: 120
25-
268
steps:
279
- uses: actions/checkout@v4
2810

29-
- name: Set up Python
30-
uses: actions/setup-python@v5
11+
- name: Set up Android NDK
12+
uses: nndixon/setup-android-ndk@v1
3113
with:
32-
python-version: "3.11"
14+
ndk-version: r26b # Latest stable for Bionic support
15+
16+
- name: Install Termux Toolchain
17+
run: |
18+
# We use the NDK to create a standalone toolchain for Termux
19+
export CC=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android34-clang
20+
export CXX=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android34-clang++
21+
echo "CC=$CC" >> $GITHUB_ENV
22+
echo "CXX=$CXX" >> $GITHUB_ENV
3323
34-
- name: Enable QEMU
35-
uses: docker/setup-qemu-action@v3
24+
- name: Build Wheel
25+
run: |
26+
pip install wheel
27+
# We tell the build system specifically to target Android
28+
# This avoids the 'manylinux' GLIBC errors entirely
29+
python setup.py bdist_wheel --plat-name=android_aarch64
3630
31+
- name: Upload Fast Wheel
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: fast-termux-wheel
35+
path: dist/*.whl
3736
# --------------------------------------------------
3837
# System deps (heavy ones upfront)
3938
# --------------------------------------------------

0 commit comments

Comments
 (0)