Update windows build workflow (#585)

Use MariaDB Connector/C 3.3.4
This commit is contained in:
Inada Naoki
2023-05-07 10:33:42 +09:00
committed by GitHub
parent 17c4e466d9
commit d0658273ac

View File

@ -11,12 +11,12 @@ jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
env: env:
CONNECTOR_VERSION: "3.3.1" CONNECTOR_VERSION: "3.3.4"
steps: steps:
- name: Cache Connector - name: Cache Connector
id: cache-connector id: cache-connector
uses: actions/cache@v1 uses: actions/cache@v3
with: with:
path: c:/mariadb-connector path: c:/mariadb-connector
key: mariadb-connector-c-${{ env.CONNECTOR_VERSION }}-win key: mariadb-connector-c-${{ env.CONNECTOR_VERSION }}-win
@ -41,7 +41,7 @@ jobs:
cmake -DCMAKE_INSTALL_PREFIX=c:/mariadb-connector -DCMAKE_INSTALL_COMPONENT=Development -DCMAKE_BUILD_TYPE=Release -P cmake_install.cmake cmake -DCMAKE_INSTALL_PREFIX=c:/mariadb-connector -DCMAKE_INSTALL_COMPONENT=Development -DCMAKE_BUILD_TYPE=Release -P cmake_install.cmake
- name: Checkout mysqlclient - name: Checkout mysqlclient
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
path: mysqlclient path: mysqlclient
@ -58,9 +58,9 @@ jobs:
EOF EOF
cat site.cfg cat site.cfg
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
- name: Install cibuildwheel - name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.7.0 run: python -m pip install cibuildwheel==2.12.3
- name: Build wheels - name: Build wheels
working-directory: mysqlclient working-directory: mysqlclient
env: env:
@ -70,7 +70,7 @@ jobs:
run: "python -m cibuildwheel --prerelease-pythons --output-dir dist" run: "python -m cibuildwheel --prerelease-pythons --output-dir dist"
- name: Upload Wheel - name: Upload Wheel
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: win-wheels name: win-wheels
path: mysqlclient/dist/*.whl path: mysqlclient/dist/*.whl