Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Jun 21, 2022
1 parent a707366 commit 33b8f70
Showing 1 changed file with 4 additions and 32 deletions.
36 changes: 4 additions & 32 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- ci
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -64,41 +65,12 @@ jobs:
working-directory: mysqlclient
env:
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8"
CIBW_ARCHS_WINDOWS: "AMD64"
run: python -m cibuildwheel --prerelease-pythons --output-dir dist

#- name: Build wheels
# shell: cmd
# working-directory: mysqlclient
# run: |
# py -3.10 -m pip install -U setuptools wheel pip
# py -3.10 setup.py bdist_wheel
# py -3.9 -m pip install -U setuptools wheel pip
# py -3.9 setup.py bdist_wheel
# 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
CIBW_ARCHS: "AMD64"
CIBW_TEST_COMMAND: "python -c \"import MySQLdb; print(MySQLdb.version_info)\" "
run: "python -m cibuildwheel --prerelease-pythons --output-dir dist"

- name: Upload Wheel
uses: actions/upload-artifact@v2
with:
name: win-wheels
path: mysqlclient/dist/*.whl

- name: Check wheels
shell: bash
working-directory: mysqlclient/dist
run: |
ls -la
py -3.11 -m pip install --no-index --find-links . mysqlclient
py -3.11 -c "import MySQLdb; print(MySQLdb.version_info)"
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)"

0 comments on commit 33b8f70

Please sign in to comment.