Skip to content

Commit

Permalink
Update CI config to also build apple-silcon wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Jul 16, 2024
1 parent f46e371 commit 1df4d8a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ on:
push:
tags:
- 'v*'
pull_request:

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macOS-11]
os: [ubuntu-20.04, windows-2019, macos-13, macos-14]

steps:
- uses: actions/checkout@v4
Expand All @@ -33,36 +34,37 @@ jobs:
# these shouldn't be needed
CIBW_SKIP: "*-win32 *-manylinux_i686 *musllinux*"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./dist/*.whl
name: wheels

build_sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 0
fetch-tags: true

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: "3.12"

- name: Build sdist
run: |
python --version
pip install -U build
python -m build --sdist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./dist/*.tar.gz
name: sdist

pypi_upload:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs:
- build_wheels
Expand Down

0 comments on commit 1df4d8a

Please sign in to comment.