Actualizacion de archivos #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '0 0 1,15 * *' | |
jobs: | |
build: | |
#runs-on: ubuntu-latest | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get Date | |
id: get-date | |
run: | | |
echo "date=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: Cache Buildozer global directory | |
uses: actions/cache@v4 | |
with: | |
path: .buildozer_global | |
key: buildozer-global-${{ hashFiles('buildozer.spec') }} | |
- uses: actions/cache@v4 | |
with: | |
path: .buildozer | |
key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('buildozer.spec') }} | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11.5 | |
- name: Install dependencies | |
run: | | |
# Initial shit | |
pip install --upgrade pip | |
pip install buildozer cython==0.29.33 | |
sudo apt-get update | |
sudo apt-get install -y ffmpeg libunwind-dev build-essential git python3 python3-dev libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev zlib1g-dev libgstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good libsqlite3-dev sqlite3 bzip2 libbz2-dev libssl-dev openssl libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libncursesw5-dev libffi-dev uuid-dev libffi7 lld python3-pip zip unzip | |
- name: Build with Buildozer | |
uses: ArtemSBulgakov/buildozer-action@v1.1.3 | |
id: buildozer | |
with: | |
command: echo y | buildozer -v android debug | |
buildozer_version: master | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: android-package | |
path: ${{ steps.buildozer.outputs.filename }} |