On macOS install official Python

the GitHub/Homebrew ones only support newer macOS versions
This commit is contained in:
Paulchen-Panther 2024-11-28 21:03:16 +01:00 committed by GitHub
parent adfd1c1266
commit a99e6916cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,10 +120,13 @@ jobs:
brew install qt@${{ inputs.qt_version }} vulkan-headers ninja libftdi || true
echo '::endgroup::'
- name: Temporarily downgrade CMake to 3.28.3 # Please remove if GitHub has updated Cmake (greater than 3.30.0)
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.28.3'
echo '::group::Install official Python'
# We need the official Python, because the GA ones only support newer macOS versions
export PYTHON_VERSION=$(python3 --version | cut -d' ' -f2 | cut -d'.' -f1,2)
curl https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-macos11.pkg -o "python.pkg"
sudo installer -pkg python.pkg -target /
python3 --version
echo '::endgroup::'
- name: 👷 Build
shell: bash