From 7a61d9d1e3c6e8dba930384019d32dc33563400b Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 8 Dec 2024 13:09:27 +0100 Subject: [PATCH] Update cache.yml --- .github/workflows/cache.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 56a74f5e9..a70c3d205 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -11,28 +11,28 @@ jobs: matrix: os: [macos-13, macos-14, macos-15] python_version: ['3.12'] + steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 name: Install Python ${{ matrix.python_version }} + id: python with: python-version: ${{ matrix.python_version }} allow-prereleases: true - run: pip install . - name: run cpython setup - shell: python + shell: bash run: | + "${{ steps.python.outputs.python-path }}" -u << "EOF" from pathlib import Path from cibuildwheel.macos import install_cpython - def main(): - tmp = Path("/tmp/cibw-tmp") - install_cpython(tmp, "3.8", "https://www.python.org/ftp/python/3.8.10/python-3.8.10-macosx10.9.pkg", False) - install_cpython(tmp, "3.9", "https://www.python.org/ftp/python/3.9.13/python-3.9.13-macos11.pkg", False) - install_cpython(tmp, "3.10", "https://www.python.org/ftp/python/3.10.11/python-3.10.11-macos11.pkg", False) - install_cpython(tmp, "3.11", "https://www.python.org/ftp/python/3.11.9/python-3.11.9-macos11.pkg", False) - install_cpython(tmp, "3.12", "https://www.python.org/ftp/python/3.12.8/python-3.12.8-macos11.pkg", False) - install_cpython(tmp, "3.13", "https://www.python.org/ftp/python/3.13.1/python-3.13.1-macos11.pkg", False) - install_cpython(tmp, "3.13", "https://www.python.org/ftp/python/3.13.1/python-3.13.1-macos11.pkg", True) - - if __name__ == "__main__": - main() + tmp = Path("/tmp/cibw-tmp") + install_cpython(tmp, "3.8", "https://www.python.org/ftp/python/3.8.10/python-3.8.10-macosx10.9.pkg", False) + install_cpython(tmp, "3.9", "https://www.python.org/ftp/python/3.9.13/python-3.9.13-macos11.pkg", False) + install_cpython(tmp, "3.10", "https://www.python.org/ftp/python/3.10.11/python-3.10.11-macos11.pkg", False) + install_cpython(tmp, "3.11", "https://www.python.org/ftp/python/3.11.9/python-3.11.9-macos11.pkg", False) + install_cpython(tmp, "3.12", "https://www.python.org/ftp/python/3.12.8/python-3.12.8-macos11.pkg", False) + install_cpython(tmp, "3.13", "https://www.python.org/ftp/python/3.13.1/python-3.13.1-macos11.pkg", False) + install_cpython(tmp, "3.13", "https://www.python.org/ftp/python/3.13.1/python-3.13.1-macos11.pkg", True) + EOF