diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index f1092e1..a2e8027 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -13,7 +13,7 @@ jobs: name: Build source distribution runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive @@ -28,8 +28,9 @@ jobs: - name: Build sdist run: pipx run build --sdist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: cibw-sdist path: dist/*.tar.gz build_wheels: @@ -78,19 +79,21 @@ jobs: name: "cp*-win*" env: CIBW_BUILD: "cp*-win*" - - os: macos-11 - name: "*-macos_{x86_64,arm64}" - env: - CIBW_ARCHS_MACOS: x86_64 arm64 + - os: macos-13 + name: "*-macos_x86_64" + env: {} + - os: macos-14 + name: "*-macos_arm64" + env: {} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: Set up QEMU if: runner.os == 'Linux' - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 with: platforms: all @@ -103,21 +106,23 @@ jobs: run: python .github/adjust_version.py --release - name: Build wheels - uses: pypa/cibuildwheel@v2.19.1 + uses: pypa/cibuildwheel@v2.20.0 env: ${{ matrix.cfg.env }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: cibw-wheels-${{ matrix.cfg.os }}-${{ strategy.job-index }} path: ./wheelhouse/*.whl upload_pypi: needs: [build_wheels, build_sdist] runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: artifact + pattern: cibw-* path: dist + merge-multiple: true - uses: pypa/gh-action-pypi-publish@v1.5.0 if: ${{ github.event.inputs.wip == 'true' }}