From eb84973b1ab860f02a95068e6f1f924386bd9e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=88?= Date: Thu, 6 Jun 2024 21:27:56 +0700 Subject: [PATCH] Build and upload aarch64 wheels --- .circleci/config.yml | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..21d5274 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,45 @@ +version: 2.1 + +jobs: + arm-wheels: + parameters: + build: + type: string + skip: + type: string + default: "" + + machine: + image: ubuntu-2204:2023.07.1 + resource_class: arm.medium + + steps: + - checkout + - run: + name: install cibuildwheel + command: | + python3 -m pip install --upgrade pip setuptools twine cibuildwheel + + - run: + name: cibuildwheel + command: | + python3 -m cibuildwheel . + + - run: + name: upload + command: | + python3 -m twine upload wheelhouse/*manylinux_aarch64*.whl + + - store_artifacts: + path: wheelhouse/ + +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. + jobs: + - arm-wheels: + name: manylinux_aarch64 + build: "*manylinux_aarch64*" + filters: + tags: + only: /.*/