Skip to content
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
- py3_casacore_v3.4
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build container
run: docker build . -t ${{ matrix.dist }} -f .github/workflows/${{ matrix.dist }}.docker

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: install homebrew packages
run: |
brew tap casacore/tap
brew tap casacore/tap
brew install casacore --with-python

- name: make virtualenv
Expand All @@ -40,6 +40,6 @@ jobs:
run: venv/bin/delocate-wheel -v dist/*.whl

- name: Publish OS X binary wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: dist/*.whl
57 changes: 57 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build wheels

on:
# Just testing for now, and the dispatch on works on master branch...
push:
branches: [ cibuildwheel ]
workflow_dispatch:

env:
# Just build for the latest Homebrew Python on macOS
CIBW_BUILD: cp311-macosx*
# Install HEAD version of casacore-data because we don't need exact version
# when compiling python-casacore. This avoids failure if it's not up to date.
# The pip install is a workaround (see https://issues.apache.org/jira/browse/ARROW-11151).
CIBW_BEFORE_ALL_MACOS: >
brew tap casacore/tap &&
brew install casacore-data --HEAD &&
pip3 install numpy &&
brew install casacore --with-python
# Support both Apple architectures natively
CIBW_ARCHS_MACOS: "x86_64 arm64"
# XXX (but don't test Apple Silicon yet - we first need some M1 runners - Q4 2023?)
CIBW_TEST_SKIP: "*-macosx_arm64"

jobs:
make_sdist:
name: Build SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build SDist
run: pipx run build --sdist

- uses: actions/upload-artifact@v3
with:
name: sdist
path: dist/*.tar.gz

build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
steps:
- uses: actions/checkout@v3

- name: Build wheels
uses: pypa/cibuildwheel@v2.15.0

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