@@ -102,10 +102,17 @@ jobs:
102102 # of whether this is being run from the local repository with workflow_dispatch
103103 # or from another repository with workflow_call.
104104 run : echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
105- - name : Set up Python 3.9
105+ - name : Set up JDK 17
106+ uses : actions/setup-java@v4
107+ with :
108+ distribution : ' temurin'
109+ java-version : ' 17'
110+ cache : ' gradle'
111+ - name : Set up Python 3.10
106112 uses : actions/setup-python@v6
107113 with :
108- python-version : 3.9
114+ python-version : " 3.10"
115+ cache : ' pip'
109116 - name : Install Apt Dependencies
110117 # Dependencies installed here are taken from the buildozer Dockerfile:
111118 # https://github.com/kivy/buildozer/blob/master/Dockerfile#L45
@@ -122,24 +129,6 @@ jobs:
122129 libltdl-dev \
123130 patch \
124131 zlib1g-dev
125- - uses : actions/cache@v5
126- with :
127- # This is where python for android puts its intermediary build
128- # files - we cache this to improve build performance, but be
129- # aggressive in clearing the cache whenever any file changes
130- # in the repository, especially as we commit files to this folder
131- # too, so we don't want the cache to override these files.
132- # We achieve this by just caching on the currently checked out commit.
133- # Every time we update this repository, this commit will change,
134- # but repeated workflow calls for this commit will use the cache.
135- path : ./python-for-android
136- key : ${{ runner.os }}-python-for-android-${{ steps.get-commit.outputs.sha }}
137- - uses : actions/cache@v5
138- with :
139- path : ~/.cache/pip
140- key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
141- restore-keys : |
142- ${{ runner.os }}-pip-
143132 - name : Download the tarfile from URL for workflow_dispatch
144133 if : ${{ github.event.inputs.tar-url }}
145134 run : make get-tar tar=${{ github.event.inputs.tar-url }}
@@ -153,7 +142,7 @@ jobs:
153142 name : ${{ inputs.tar-file-name }}
154143 path : tar
155144 - name : Install dependencies
156- run : pip install -r requirements.txt
145+ run : pip install -r build-requirements.txt -r requirements.txt
157146 - name : Ensure that Android SDK dependencies are installed
158147 run : make setup
159148 - name : Build the aab
0 commit comments