|
8 | 8 |
|
9 | 9 | jobs: |
10 | 10 | build: |
11 | | - runs-on: windows-latest |
| 11 | + strategy: |
| 12 | + fail-fast: false |
| 13 | + matrix: |
| 14 | + include: |
| 15 | + - os: windows-latest |
| 16 | + cmake_arch: x64 |
| 17 | + cibw_arch: AMD64 |
| 18 | + - os: windows-11-arm |
| 19 | + cmake_arch: ARM64 |
| 20 | + cibw_arch: ARM64 |
| 21 | + runs-on: ${{ matrix.os }} |
12 | 22 | env: |
13 | 23 | CONNECTOR_VERSION: "3.4.8" |
14 | 24 | steps: |
|
17 | 27 | uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 |
18 | 28 | with: |
19 | 29 | path: c:/mariadb-connector |
20 | | - key: mariadb-connector-c-${{ env.CONNECTOR_VERSION }}-win-2 |
| 30 | + key: mariadb-connector-c-${{ env.CONNECTOR_VERSION }}-win-${{ matrix.cmake_arch }}-2 |
21 | 31 |
|
22 | 32 | - name: Download and Unzip Connector |
23 | 33 | if: steps.cache-connector.outputs.cache-hit != 'true' |
|
39 | 49 | shell: cmd |
40 | 50 | working-directory: c:/mariadb-connector-src/build |
41 | 51 | run: | |
42 | | - cmake -A x64 .. -DCMAKE_BUILD_TYPE=Release -DCLIENT_PLUGIN_DIALOG=static -DCLIENT_PLUGIN_SHA256_PASSWORD=static -DCLIENT_PLUGIN_CACHING_SHA2_PASSWORD=static -DDEFAULT_SSL_VERIFY_SERVER_CERT=0 |
| 52 | + cmake -A ${{ matrix.cmake_arch }} .. -DCMAKE_BUILD_TYPE=Release -DCLIENT_PLUGIN_DIALOG=static -DCLIENT_PLUGIN_SHA256_PASSWORD=static -DCLIENT_PLUGIN_CACHING_SHA2_PASSWORD=static -DDEFAULT_SSL_VERIFY_SERVER_CERT=0 |
43 | 53 |
|
44 | 54 | - name: cmake build |
45 | 55 | if: steps.cache-connector.outputs.cache-hit != 'true' |
@@ -80,11 +90,12 @@ jobs: |
80 | 90 | working-directory: mysqlclient |
81 | 91 | env: |
82 | 92 | CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10" |
83 | | - CIBW_ARCHS: "AMD64" |
| 93 | + CIBW_ARCHS: ${{ matrix.cibw_arch }} |
84 | 94 | CIBW_TEST_COMMAND: 'python -c "import MySQLdb; print(MySQLdb.version_info)" ' |
85 | 95 | run: "python -m cibuildwheel --output-dir dist" |
86 | 96 |
|
87 | 97 | - name: Build sdist |
| 98 | + if: matrix.cibw_arch == 'AMD64' |
88 | 99 | working-directory: mysqlclient |
89 | 100 | run: | |
90 | 101 | python -m pip install build |
|
93 | 104 | - name: Upload Wheel |
94 | 105 | uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 |
95 | 106 | with: |
96 | | - name: win-wheels |
| 107 | + name: win-wheels-${{ matrix.cibw_arch }} |
97 | 108 | path: mysqlclient/dist/*.* |
0 commit comments