From 8ed58a66908ce7299c2b340696f8706d6424fc50 Mon Sep 17 00:00:00 2001 From: Richard Dymond Date: Tue, 12 Mar 2024 16:56:25 -0300 Subject: [PATCH] Add wheels workflow --- .github/workflows/wheels.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/wheels.yml diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml new file mode 100644 index 00000000..c472857b --- /dev/null +++ b/.github/workflows/wheels.yml @@ -0,0 +1,31 @@ +name: wheels + +on: + workflow_dispatch: + +jobs: + build-wheels: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-13, macos-14] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + + - name: Install cibuildwheel + run: python -m pip install cibuildwheel==2.17.0 + + - name: Build wheels + run: python -m cibuildwheel --output-dir wheels + + - name: Upload wheels + uses: actions/upload-artifact@v4 + with: + name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} + path: ./wheels/*.whl