2020-06-23 13:57:51 +02:00
|
|
|
# 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.
|
|
|
|
|
2020-06-23 14:05:39 +02:00
|
|
|
## Inputs
|
|
|
|
|
|
|
|
### `command`
|
|
|
|
|
|
|
|
**Required** Command to start Buildozer.
|
|
|
|
|
|
|
|
- _Default:_ `buildozer android debug` _(iOS and OSX is not supported because Docker cannot run on MacOS)_.
|
|
|
|
- For more commands use `;` as delimiter: `python3 setup.py build_ext --inplace; buildozer android debug`.
|
|
|
|
|
|
|
|
### `workdir`
|
|
|
|
|
|
|
|
**Required** Working directory where buildozer.spec is located.
|
|
|
|
|
|
|
|
- _Default:_ `.` (top directory).
|
|
|
|
- Set to `src` if buildozer.spec is in `src` directory.
|
|
|
|
|
2020-06-23 14:07:13 +02:00
|
|
|
## Outputs
|
|
|
|
|
|
|
|
### `filename`
|
|
|
|
|
|
|
|
Filename of built package relative to repository root.
|
|
|
|
|
|
|
|
- Example: `test_app/bin/testapp-0.1-armeabi-v7a-debug.apk`
|
|
|
|
|
2020-06-23 13:57:51 +02:00
|
|
|
## Example usage
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
- name: Build with Buildozer
|
|
|
|
uses: ArtemSBulgakov/buildozer-action@v1
|
2020-06-23 14:07:13 +02:00
|
|
|
id: buildozer
|
2020-06-23 14:05:39 +02:00
|
|
|
with:
|
|
|
|
command: buildozer android debug
|
|
|
|
workir: src
|
2020-06-23 13:57:51 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
ArtemSBulgakov/buildozer-action is released under the terms of the
|
|
|
|
[MIT License](LICENSE).
|