Skip to content

Commit

Permalink
Update builders [build abdroid apk]
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayaurora committed Aug 19, 2023
1 parent 0082283 commit b8f500a
Show file tree
Hide file tree
Showing 114 changed files with 951 additions and 266 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/android_buildozer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Android Buildozer
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 1,15 * *'

jobs:
build:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' && (github.event_name == 'schedule' || (github.event_name == 'create' && github.event.ref_type == 'tag') || contains(github.event.head_commit.message, '[build android apk]')) || contains(github.event.pull_request.title, '[build android apk]')

steps:
- uses: actions/checkout@v3
- name: setup docker
id: buildozer
run: docker build . -t local -f tools/build/build_android.dockerfile
- name: build with buildozer
run: docker run -i -v $PWD:/srv -w/srv local /bin/bash ./tools/build/build_android.sh

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: package
path: build/android/bin/*.apk
27 changes: 27 additions & 0 deletions .github/workflows/linux_pyinstaller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Linux Pyinstaller
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 1,15 * *'

jobs:
build:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' && (github.event_name == 'schedule' || (github.event_name == 'create' && github.event.ref_type == 'tag') || contains(github.event.head_commit.message, '[build linux run]')) || contains(github.event.pull_request.title, '[build linux run]')

steps:
- uses: actions/checkout@v3
- name: setup docker
id: linux-docker-kivy
run: docker build . -t local -f tools/build/build_linux_amd64.dockerfile
- name: build with pyinstaller
run: docker run -i -v $PWD:/srv -w/srv local /bin/bash ./tools/build/build_debian_8_docker.sh

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: package
path: 'build/linux/dist/**'
51 changes: 51 additions & 0 deletions .github/workflows/osx_dmg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: OSX dmg

on:
push:
pull_request:
create:
schedule:
- cron: '0 0 1,15 * *'

env:
CC: clang
CXX: clang
FFLAGS: '-ff2c'
USE_SDL2: 1

jobs:
osx_dmg_create:
runs-on: macos-latest
if: github.event_name != 'pull_request' && (github.event_name == 'schedule' || (github.event_name == 'create' && github.event.ref_type == 'tag') || contains(github.event.head_commit.message, '[build app osx]')) || contains(github.event.pull_request.title, '[build app osx]')
env:
KIVY_SPLIT_EXAMPLES: 0
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Make app bundle
run:
python3 tools/build/build_macosx.py
- name: Delete Old Artifacts
uses: actions/github-script@v6
id: artifact
with:
script: |
const res = await github.rest.actions.listArtifactsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
})
res.data.artifacts
.forEach(({ id }) => {
github.rest.actions.deleteArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: id,
})
})
- uses: actions/upload-artifact@v2
with:
name: osx_dmg
path: ./build/bin/KivyHelloWorld.dmg
80 changes: 64 additions & 16 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ __pycache__/

# Distribution / packaging
.Python
env/
cache/
build/
develop-eggs/
dist/
Expand All @@ -22,6 +20,7 @@ parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
Expand All @@ -33,35 +32,34 @@ MANIFEST
*.manifest
*.spec

#pydelhiconf/data/tracks.json
#pydelhiconf/data/sponsors.json
#pydelhiconf/data/schedule.json
#pydelhiconf/data/community.json

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
.static_storage/
.media/
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
Expand All @@ -74,23 +72,62 @@ instance/
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version
# IPython
profile_default/
ipython_config.py

# celery beat schedule file
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv

.DS_Store

/build/
/bin/

env/
venv/
ENV/
Expand All @@ -109,10 +146,21 @@ venv.bak/

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Buildozer
.buildozer/
/bin
# Cython debug symbols
cython_debug/

# PyCharm
.idea
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
Empty file modified CONTRIBUTING.md
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified Makefile
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Loading

0 comments on commit b8f500a

Please sign in to comment.