Skip to content

Commit

Permalink
Build sphericart wheels for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthaf committed Dec 20, 2024
1 parent 1bf8979 commit d94616a
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,30 @@ concurrency:
jobs:
build-wheels:
runs-on: ${{ matrix.os }}
name: ${{matrix.name}}
strategy:
matrix:
os: [ubuntu-24.04]
arch: ["x86_64"]

name: "${{matrix.os}} ${{matrix.arch}}"
include:
- name: x86_64 Linux
os: ubuntu-22.04
cibw-arch: x86_64
- name: x86_64 macOS
os: macos-13
cibw-arch: x86_64
- name: M1 macOS
os: macos-14
cibw-arch: arm64

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build custom manylinux Docker Image with CUDA
if: matrix.os == 'ubuntu-22.04'
run: |
docker build --no-cache \
-t sphericart_manylinux2014_"${{ matrix.arch }}" \
scripts/manylinux2014_"${{ matrix.arch }}"
-t sphericart_manylinux2014_"${{ matrix.cibw-arch }}" \
scripts/manylinux2014_"${{ matrix.cibw-arch }}"
- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -45,13 +53,14 @@ jobs:
CIBW_BUILD_VERBOSITY: 1
CIBW_BUILD: "cp312-*"
CIBW_SKIP: "*-musllinux*"
CIBW_ARCHS: "${{ matrix.arch }}"
CIBW_ARCHS: "${{ matrix.cibw-arch }}"
CIBW_MANYLINUX_X86_64_IMAGE: sphericart_manylinux2014_x86_64
CIBW_ENVIRONMENT: >
SPHERICART_ARCH_NATIVE=OFF
SPHERICART_NO_LOCAL_DEPS=1
MACOSX_DEPLOYMENT_TARGET=11.0
- uses: actions/upload-artifact@v4
with:
name: sphericart-wheel-${{ matrix.os }}-${{ matrix.arch }}
name: sphericart-wheel-${{ matrix.os }}-${{ matrix.cibw-arch }}
path: ./wheelhouse/*.whl

0 comments on commit d94616a

Please sign in to comment.