Skip to content

Commit

Permalink
workflows: Move macos workflows to circleci
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <[email protected]>
  • Loading branch information
wulan17 committed Oct 8, 2024
1 parent 96262e7 commit 42103c8
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 10 deletions.
41 changes: 38 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -43,3 +72,9 @@ workflows:
filters:
tags:
only: /.*/
- macos-wheels:
name: macos
build: "*macos*"
filters:
tags:
only: /.*/
8 changes: 1 addition & 7 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 42103c8

Please sign in to comment.