diff --git a/.github/workflows/test_python.yml b/.github/workflows/test_python.yml index 1adbc867d..51abf1d15 100644 --- a/.github/workflows/test_python.yml +++ b/.github/workflows/test_python.yml @@ -45,7 +45,12 @@ jobs: run: docker run kivy/buildozer --version Integration: - runs-on: ubuntu-latest + strategy: + matrix: + os: + - 'ubuntu-latest' + - 'macOs-latest' + runs-on: ${{ matrix.os }} steps: - name: Setup python uses: actions/setup-python@v2 @@ -60,8 +65,17 @@ jobs: - run: buildozer init - name: SDK, NDK and p4a download run: | - sed "s/# android.accept_sdk_license = False/android.accept_sdk_license = True/" -i buildozer.spec + sed -i.bak "s/# android.accept_sdk_license = False/android.accept_sdk_license = True/" buildozer.spec buildozer android p4a -- --help + # Install OS specific dependencies + - name: Install Linux dependencies + if: matrix.os == 'ubuntu-latest' + run: sudo apt -y install automake + - name: Install macOS dependencies + if: matrix.os == 'macOS-latest' + run: | + brew install automake + sudo ln -sfn /usr/local/opt/openssl /usr/local/ssl - name: buildozer android debug run: | touch main.py diff --git a/docs/source/installation.rst b/docs/source/installation.rst index f93e143f0..5fd5e538e 100644 --- a/docs/source/installation.rst +++ b/docs/source/installation.rst @@ -13,7 +13,7 @@ First, install the buildozer project with:: Targeting Android ----------------- -Android on Ubuntu 18.04 (64bit) +Android on Ubuntu 20.04 (64bit) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (expected to work as well in later version, but only regularly tested in the latest LTS) @@ -28,6 +28,20 @@ Android on Ubuntu 18.04 (64bit) export PATH=$PATH:~/.local/bin/ +Android on macOS +~~~~~~~~~~~~~~~~ + +:: + + brew install openssl + sudo ln -sfn /usr/local/opt/openssl /usr/local/ssl + brew install pkg-config autoconf automake + python3 -m pip install --user --upgrade Cython==0.29.19 virtualenv # the --user should be removed if you do this in a venv + + # add the following line at the end of your `~/.bashrc` file + export PATH=$PATH:~/Library/Python/3.7/bin + + TroubleShooting ~~~~~~~~~~~~~~~ @@ -72,4 +86,4 @@ Install pip and virtualenv :: - python -m pip install --user --upgrade pip virtualenv kivy-ios + python3 -m pip install --user --upgrade pip virtualenv kivy-ios