|
4 | 4 | push:
|
5 | 5 | branches:
|
6 | 6 | - master
|
| 7 | + - ci |
7 | 8 | workflow_dispatch:
|
8 | 9 |
|
9 | 10 | jobs:
|
10 | 11 | build:
|
11 | 12 | runs-on: windows-latest
|
12 | 13 | env:
|
13 |
| - CONNECTOR_VERSION: "3.2.4" |
| 14 | + CONNECTOR_VERSION: "3.3.1" |
14 | 15 | steps:
|
15 | 16 |
|
16 | 17 | - name: Cache Connector
|
@@ -57,36 +58,19 @@ jobs:
|
57 | 58 | EOF
|
58 | 59 | cat site.cfg
|
59 | 60 |
|
| 61 | + - uses: actions/setup-python@v2 |
| 62 | + - name: Install cibuildwheel |
| 63 | + run: python -m pip install cibuildwheel==2.7.0 |
60 | 64 | - name: Build wheels
|
61 |
| - shell: cmd |
62 | 65 | working-directory: mysqlclient
|
63 |
| - run: | |
64 |
| - py -3.10 -m pip install -U setuptools wheel pip |
65 |
| - py -3.10 setup.py bdist_wheel |
66 |
| - py -3.9 -m pip install -U setuptools wheel pip |
67 |
| - py -3.9 setup.py bdist_wheel |
68 |
| - py -3.8 -m pip install -U setuptools wheel pip |
69 |
| - py -3.8 setup.py bdist_wheel |
70 |
| - py -3.7 -m pip install -U setuptools wheel pip |
71 |
| - py -3.7 setup.py bdist_wheel |
| 66 | + env: |
| 67 | + CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8" |
| 68 | + CIBW_ARCHS: "AMD64" |
| 69 | + CIBW_TEST_COMMAND: "python -c \"import MySQLdb; print(MySQLdb.version_info)\" " |
| 70 | + run: "python -m cibuildwheel --prerelease-pythons --output-dir dist" |
72 | 71 |
|
73 | 72 | - name: Upload Wheel
|
74 | 73 | uses: actions/upload-artifact@v2
|
75 | 74 | with:
|
76 | 75 | name: win-wheels
|
77 | 76 | path: mysqlclient/dist/*.whl
|
78 |
| - |
79 |
| - - name: Check wheels |
80 |
| - shell: bash |
81 |
| - working-directory: mysqlclient/dist |
82 |
| - run: | |
83 |
| - ls -la |
84 |
| - py -3.10 -m pip install --no-index --find-links . mysqlclient |
85 |
| - py -3.10 -c "import MySQLdb; print(MySQLdb.version_info)" |
86 |
| - py -3.9 -m pip install --no-index --find-links . mysqlclient |
87 |
| - py -3.9 -c "import MySQLdb; print(MySQLdb.version_info)" |
88 |
| - py -3.8 -m pip install --no-index --find-links . mysqlclient |
89 |
| - py -3.8 -c "import MySQLdb; print(MySQLdb.version_info)" |
90 |
| - py -3.7 -m pip install --no-index --find-links . mysqlclient |
91 |
| - py -3.7 -c "import MySQLdb; print(MySQLdb.version_info)" |
92 |
| -
|
0 commit comments