diff --git a/.circleci/config.yml b/.circleci/config.yml index cc82762..4412382 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,21 +18,50 @@ jobs: - run: name: install cibuildwheel command: | - python3 -m pip install --upgrade pip setuptools twine cibuildwheel + pip install --upgrade pip setuptools twine cibuildwheel - run: name: cibuildwheel command: | - python3 -m cibuildwheel . + cibuildwheel . - run: name: Release to pypi command: | - python3 -m twine upload wheelhouse/*.whl + twine upload wheelhouse/*.whl - store_artifacts: path: wheelhouse/ + macos-wheels: + parameters: + build: + type: string + skip: + type: string + default: "" + + macos: + xcode: 16.0.0 + + steps: + - checkout + - run: + name: install cibuildwheel + command: | + pip install --upgrade pip setuptools twine cibuildwheel + + - run: + name: cibuildwheel + command: | + cibuildwheel . + + - run: + name: Release to pypi + command: | + twine upload wheelhouse/*.whl + + workflows: wheels: # This is the name of the workflow, feel free to change it to better match your workflow. # Inside the workflow, you define the jobs you want to run. @@ -43,3 +72,9 @@ workflows: filters: tags: only: /.*/ + - macos-wheels: + name: macos + build: "*macos*" + filters: + tags: + only: /.*/ diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 24df9ff..ff1d218 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -8,7 +8,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v4 @@ -20,12 +20,6 @@ jobs: - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse - env: - CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" - CIBW_TEST_REQUIRES: tox - CIBW_TEST_COMMAND: cd {project} && tox - CIBW_TEST_SKIP: "*-win*" - CIBW_BUILD_VERBOSITY: 1 - name: Release to pypi run: python -m twine upload wheelhouse/*.whl