diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa470a8..5b06943 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,50 +10,31 @@ jobs: steps: - - # - uses: actions/checkout@v4 - # - uses: actions-rust-lang/setup-rust-toolchain@v1 - # - run: | - # sudo apt update - # cargo install cargo-apk - # cd ${{ github.workspace }} - # cargo apk build - - - - - - name: Checkout - uses: actions/checkout@v2 - - - name: Upgrade Cython - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: nttld/setup-ndk@v1 + id: setup-ndk with: - python-version: '3.8' - - # - name: Build with Buildozer - # uses: ArtemSBulgakov/buildozer-action@v1 - # id: buildozer - # with: - # command: buildozer android debug - # # workdir: - # buildozer_version: stable - + ndk-version: r21e + add-to-path: false + - run: ./build.sh + env: + ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} + + - - name: Build with Buildozer - run: | + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - run: | sudo apt update - sudo apt install -y git zip unzip openjdk-17-jdk python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5 cmake libffi-dev libssl-dev - python -m pip install --upgrade buildozer Cython==0.29.33 virtualenv - export PATH=$PATH:~/.local/bin/ - export APP_ANDROID_ACCEPT_SDK_LICENSE=1 - export BUILDOZER_WARN_ON_ROOT=0 + cargo install cargo-ndk + rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android cd ${{ github.workspace }} - buildozer android debug + cargo ndk --platform 21 --target aarch64-linux-android build -o bin - name: Upload artifacts uses: actions/upload-artifact@v2 with: name: package - path: bin/*.apk + path: bin/*.so # path: ${{ steps.buildozer.outputs.filename }}