[p4a] clean github action prior to build conditional on cache hit per PR recommendation
@@ -47,14 +47,16 @@ jobs:
run: pip install buildozer cython
- name: Cache buildozer files
uses: actions/cache@v2
+ id: buildozer-cache
with:
path: |
~/.buildozer
examples/kivy/.buildozer
key: build-cache-buildozer
+ - name: Clean bleak recipe for cache
+ if: steps.buildozer-cache.outputs.cache-hit == 'true'
+ working-directory: examples/kivy
+ run: buildozer android p4a -- clean-recipe-build --local-recipes $(pwd)/../../bleak/backends/p4android/recipes bleak
- name: Build Kivy example
working-directory: examples/kivy
run: buildozer android debug
- - name: Clean bleak recipe for cache
- working-directory: examples/kivy
- run: buildozer android p4a -- clean_recipe_build --local-recipes $(pwd)/../../bleak/backends/p4android/recipes bleak
