Merge pull request #1131 from AndreMiras/feature/macos_integration_test
✅ Also integration test on macOS
This commit is contained in:
commit
4bffaa64a1
2 changed files with 32 additions and 4 deletions
18
.github/workflows/test_python.yml
vendored
18
.github/workflows/test_python.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue