Skip to content

Commit

Permalink
server add python path
Browse files Browse the repository at this point in the history
  • Loading branch information
BukiOffor committed Mar 23, 2024
1 parent 136abc1 commit 210a881
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
name: Build
on:
push:
# name: Build
# on:
# push:

jobs:
# Build job. Builds app for Android with Buildozer
build-android:
name: Build for Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# jobs:
# # Build job. Builds app for Android with Buildozer
# build-android:
# name: Build for Android
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4

- name: Checkout
uses: actions/checkout@v2
# - name: Checkout
# uses: actions/checkout@v2

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

- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: "17"
# - name: Setup Java JDK
# uses: actions/[email protected]
# with:
# distribution: 'temurin'
# java-version: "17"


- 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
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 }}
buildozer android debug
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: package
path: bin/*.apk
# path: ${{ steps.buildozer.outputs.filename }}
# - 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
# 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 }}
# buildozer android debug
# - name: Upload artifacts
# uses: actions/upload-artifact@v2
# with:
# name: package
# path: bin/*.apk
# # path: ${{ steps.buildozer.outputs.filename }}
2 changes: 2 additions & 0 deletions core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ ENV PATH /home/pn/.cargo/bin:$PATH
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

ENV PYTHONPATH "${PYTHONPATH}:/home/pn/app/"


EXPOSE 5000
ENV FLASK_APP=/home/pn/app/app.py
Expand Down

0 comments on commit 210a881

Please sign in to comment.