Action: Update Windows wheel build (#541)

This commit is contained in:
Inada Naoki
2022-06-22 09:07:56 +09:00
committed by GitHub
parent 6979a47f2e
commit aafdec84cf

View File

@ -4,13 +4,14 @@ on:
push: push:
branches: branches:
- master - master
- ci
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
env: env:
CONNECTOR_VERSION: "3.2.4" CONNECTOR_VERSION: "3.3.1"
steps: steps:
- name: Cache Connector - name: Cache Connector
@ -57,36 +58,19 @@ jobs:
EOF EOF
cat site.cfg cat site.cfg
- uses: actions/setup-python@v2
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.7.0
- name: Build wheels - name: Build wheels
shell: cmd
working-directory: mysqlclient working-directory: mysqlclient
run: | env:
py -3.10 -m pip install -U setuptools wheel pip CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8"
py -3.10 setup.py bdist_wheel CIBW_ARCHS: "AMD64"
py -3.9 -m pip install -U setuptools wheel pip CIBW_TEST_COMMAND: "python -c \"import MySQLdb; print(MySQLdb.version_info)\" "
py -3.9 setup.py bdist_wheel run: "python -m cibuildwheel --prerelease-pythons --output-dir dist"
py -3.8 -m pip install -U setuptools wheel pip
py -3.8 setup.py bdist_wheel
py -3.7 -m pip install -U setuptools wheel pip
py -3.7 setup.py bdist_wheel
- name: Upload Wheel - name: Upload Wheel
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: win-wheels name: win-wheels
path: mysqlclient/dist/*.whl path: mysqlclient/dist/*.whl
- name: Check wheels
shell: bash
working-directory: mysqlclient/dist
run: |
ls -la
py -3.10 -m pip install --no-index --find-links . mysqlclient
py -3.10 -c "import MySQLdb; print(MySQLdb.version_info)"
py -3.9 -m pip install --no-index --find-links . mysqlclient
py -3.9 -c "import MySQLdb; print(MySQLdb.version_info)"
py -3.8 -m pip install --no-index --find-links . mysqlclient
py -3.8 -c "import MySQLdb; print(MySQLdb.version_info)"
py -3.7 -m pip install --no-index --find-links . mysqlclient
py -3.7 -c "import MySQLdb; print(MySQLdb.version_info)"