From 609f435b09bcc1766c52439ac50bff9b3c1a4231 Mon Sep 17 00:00:00 2001 From: Elephant Liu Date: Mon, 7 Jul 2025 17:38:02 +0800 Subject: [PATCH] chore: build wheel for mac osx --- .github/workflows/publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 48e8af8b..b0594cf8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,7 +7,11 @@ on: jobs: pypi: - runs-on: ubuntu-22.04 + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-22.04, macos-13, macos-latest] steps: - uses: actions/checkout@v2 @@ -19,6 +23,8 @@ jobs: - name: Build wheels env: CIBW_BEFORE_BUILD: pip install 'setuptools<72.2.0 ; implementation_name == "pypy"' + MACOSX_DEPLOYMENT_TARGET: "10.13" + CIBW_SKIP: "pp*-macosx_*" run: python -m cibuildwheel --output-dir wheelhouse - name: Check build result run: ls -lh wheelhouse/