From 13a1918ce8505321934506639b17aabdaba11c60 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Thu, 14 Oct 2021 02:28:07 +0300 Subject: [PATCH] Build wheels with cibuildwheels on GitHub Actions Fixes #175 Ref #688 Closes #668 Closes #685 Fixes #441 and pretty much most issues that mention ` sql.h: No such file or directory` This also need to setup some PyPI keys for automated uploads. --- .github/workflows/ubuntu_build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ubuntu_build.yml b/.github/workflows/ubuntu_build.yml index d8a39ef7..ba7cdf6d 100644 --- a/.github/workflows/ubuntu_build.yml +++ b/.github/workflows/ubuntu_build.yml @@ -191,3 +191,23 @@ jobs: run: | cd "$GITHUB_WORKSPACE" python "./${{ matrix.tests-dir }}/mysqltests.py" "DRIVER={MySQL ODBC 8.0 ANSI Driver};SERVER=localhost;UID=root;PWD=root;DATABASE=test;CHARSET=utf8mb4" + + build_wheels: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, windows-2019, macos-10.15] + + steps: + - uses: actions/checkout@v2 + + - name: Build wheels + uses: pypa/cibuildwheel@v2.1.3 + # to supply options, put them in 'env', like: + # env: + # CIBW_SOME_OPTION: value + + - uses: actions/upload-artifact@v2 + with: + path: ./wheelhouse/*.whl