Skip to content

Commit

Permalink
feat: server & build
Browse files Browse the repository at this point in the history
  • Loading branch information
BukiOffor committed Mar 17, 2024
1 parent 9d20dd1 commit d48b185
Showing 1 changed file with 29 additions and 17 deletions.
46 changes: 29 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,42 @@ jobs:
build-android:
name: Build for Android
runs-on: ubuntu-latest


steps:
- uses: actions/checkout@v3
- uses: nttld/setup-ndk@v1
with:
ndk-version: r21c




- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: |
pip install maturin
python3 -m venv env
source env/bin/activate
maturin develop
- name: Checkout
uses: actions/checkout@v2

- name: Upgrade Cython
uses: actions/setup-python@v2
with:
python-version: '3.8'

# - name: Build with Buildozer
# uses: ArtemSBulgakov/buildozer-action@v1
# id: buildozer
# with:
# command: buildozer android debug
# # workdir: <specify the directory of the app no don't mention this the app files are in root directory>
# buildozer_version: stable
- name: Build with Buildozer
run: |
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
sudo apt update
cargo install cargo-ndk
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android
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
cd ${{ github.workspace }}
cargo-ndk -t aarch64-linux-android
buildozer android debug
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: package
path: bin/*.so
# path: ${{ steps.buildozer.outputs.filename }}
path: bin/*.apk
# path: ${{ steps.buildozer.outputs.filename }}

0 comments on commit d48b185

Please sign in to comment.