Skip to content

Commit

Permalink
Merge pull request #278 from cta-observatory/wheels_update
Browse files Browse the repository at this point in the history
Update CI config to also build apple-silicon wheels
  • Loading branch information
maxnoe authored Jul 16, 2024
2 parents f46e371 + b23916d commit 8c4bfbd
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 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-latest, windows-latest, macos-13, macos-14]

steps:
- uses: actions/checkout@v4
Expand All @@ -33,10 +34,10 @@ 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
name: wheels-${{ matrix.os }}

build_sdist:
runs-on: ubuntu-latest
Expand All @@ -47,22 +48,23 @@ jobs:
fetch-tags: true

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
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 8c4bfbd

Please sign in to comment.