Skip to content

Commit

Permalink
update deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rkaminsk committed Sep 12, 2024
1 parent 98659c6 commit c3eca7e
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down Expand Up @@ -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

Expand 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/[email protected]
if: ${{ github.event.inputs.wip == 'true' }}
Expand Down

0 comments on commit c3eca7e

Please sign in to comment.