diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 8eeac91c..844f451a 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -63,7 +63,6 @@ jobs: path: dist/tcod-*.tar.gz retention-days: 7 - # This makes sure that the latest versions of the SDL headers parse correctly. parse_sdl: needs: [ruff, mypy] @@ -274,7 +273,7 @@ jobs: # Downloads SDL2 for the later step. run: python3 build_sdl.py - name: Build wheels - uses: pypa/cibuildwheel@v2.12.3 + uses: pypa/cibuildwheel@v2.17.0 env: CIBW_BUILD: ${{ matrix.python }} CIBW_ARCHS_MACOS: x86_64 arm64 universal2 @@ -282,6 +281,7 @@ jobs: CIBW_BEFORE_TEST: pip install numpy CIBW_TEST_COMMAND: python -c "import tcod.context" CIBW_TEST_SKIP: "pp* *-macosx_arm64 *-macosx_universal2:arm64" + MACOSX_DEPLOYMENT_TARGET: "10.11" - name: Archive wheel uses: actions/upload-artifact@v3 with: @@ -290,15 +290,15 @@ jobs: retention-days: 7 publish: - needs: [sdist, build, build-macos, linux-wheels] - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - environment: - name: release - url: https://pypi.org/p/tcod - permissions: - id-token: write - steps: + needs: [sdist, build, build-macos, linux-wheels] + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') + environment: + name: release + url: https://pypi.org/p/tcod + permissions: + id-token: write + steps: - uses: actions/download-artifact@v3 with: name: sdist