diff options
author | Kliment Yanev <kliment.yanev@gmail.com> | 2020-10-01 10:01:12 +0300 |
---|---|---|
committer | Kliment Yanev <kliment.yanev@gmail.com> | 2020-10-01 10:01:12 +0300 |
commit | db8531d3f2b3911fa4b785c0a31d6a1ed8ed116c (patch) | |
tree | 4be4f91a125b4cc021f8a35f6d9a07a1e0fcaba2 | |
parent | 6cc9309f23a80130e4fa595a84e97154f84637c2 (diff) |
Don't use github's broken non-framework python when building macos app
-rw-r--r-- | .github/workflows/buildpackage-mac.yml | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/.github/workflows/buildpackage-mac.yml b/.github/workflows/buildpackage-mac.yml index 832d1f1..efe75aa 100644 --- a/.github/workflows/buildpackage-mac.yml +++ b/.github/workflows/buildpackage-mac.yml @@ -20,11 +20,18 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - architecture: ${{ matrix.architecture }} - python-version: ${{ matrix.python-version }} + - name: Set up Python 3.8.6 + run: | + curl https://www.python.org/ftp/python/3.8.6/python-3.8.6-macosx10.9.pkg --output pythonInstaller.pkg + sudo installer -pkg pythonInstaller.pkg -target / + python3 --version + python3 -c "import platform; print('macOS version:', platform.mac_ver()[0])" + - name: Setup venv + run: | + python3 -m venv venv + source venv/bin/activate + python --version + python -c "import sys; print('\n'.join(sys.path))" - name: Install dependencies run: | python -m pip install --upgrade pip pyinstaller setuptools wheel cython cffi -r requirements.txt |