commit 66ae8d31bc4e262ae6875cc6827b80c746f78fab Author: Artem Bulgakov Date: Tue Jun 23 14:57:51 2020 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..30db6b0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,52 @@ +# Directories and files that cannot be commited to git + +# Editors +.idea +.vscode +*.swp + +# Byte-compiled +__pycache__ +*.py[cod] +*$py.class + +# Distribution / packaging +.Python +lib +lib64 +parts +sdist +var +wheels +pip-wheel-metadata +share/python-wheels +develop-eggs +eggs +.eggs +*.egg-info +*.egg +MANIFEST +.installed.cfg +downloads +build +dist +bin +.buildozer + +# Logs +*.log +pip-log.txt +pip-delete-this-directory.txt + +# Environments +venv +.venv +env +.env +.python-version + +# Temp / Cache +cache +.cache +temp +.temp diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..70ee126 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM kivy/buildozer:latest +# See https://github.com/kivy/buildozer/blob/master/Dockerfile + +COPY entrypoint.sh /action/entrypoint.sh + +ENTRYPOINT ["/action/entrypoint.sh"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7a9beb0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Artem Bulgakov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..9a3b592 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# Buildozer action + +Build your Python/[Kivy](https://github.com/kivy/kivy) applications for Android +with [Buildozer](https://github.com/kivy/buildozer). This action uses official +Buildozer [Docker image](https://github.com/kivy/buildozer/blob/master/Dockerfile), +but adds some features and patches to use in GitHub Actions. + +## Example usage + +```yaml +- name: Build with Buildozer + uses: ArtemSBulgakov/buildozer-action@v1 +``` + +## License + +ArtemSBulgakov/buildozer-action is released under the terms of the +[MIT License](LICENSE). diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..824d01b --- /dev/null +++ b/action.yml @@ -0,0 +1,10 @@ +name: Buildozer +description: Build Python package with Kivy Buildozer +author: Artem Bulgakov +branding: + icon: package + color: yellow + +runs: + using: docker + image: Dockerfile diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..ce04255 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# Run build +sh -c "buildozer android debug"