From 1b136934ba50a0869c2cda1b4ebd9115e0a06f1b Mon Sep 17 00:00:00 2001 From: David Huggins-Daines Date: Thu, 28 Dec 2023 14:46:41 -0500 Subject: [PATCH] fix(ci): tweak cibuildwheel a bit --- .github/workflows/build_wheels.yml | 6 +++--- pyproject.toml | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index ba506ab08..db450c0ad 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -2,7 +2,7 @@ name: Build on: push: branches: - master + - master workflow_dispatch: jobs: @@ -16,7 +16,7 @@ jobs: - name: Build SDist run: pipx run build --sdist - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v3 with: path: dist/*.tar.gz @@ -35,6 +35,6 @@ jobs: uses: pypa/cibuildwheel@v2.16.2 - name: Upload - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl diff --git a/pyproject.toml b/pyproject.toml index 1c12c83e1..e34515858 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,12 +44,15 @@ build = [ "cp311-*", "cp312-*", ] -# Build only universal wheels for Mac +# Build only universal wheels for Mac where possible skip = [ "cp*-macosx_x86_64", "cp*-macosx_arm64", ] +[tool.cibuildwheel.macos] +archs = ["x86_64", "universal2", "arm64"] + [tool.isort] profile = "black"