diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 4dd8250..3a9b9b8 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -13,15 +13,24 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, windows-2019, macos-11] + include: + - { name: windows, os: windows-2019, msvc_arch: x64, cibw_arch: AMD64} + - { name: windows, os: windows-2019, msvc_arch: x86, cibw_arch: x86} + - { name: macos, os: macos-11, cibw_arch: auto} + - { name: linux, os: ubuntu-20.04, cibw_arch: auto} steps: - uses: actions/checkout@v3 + - uses: ilammy/msvc-dev-cmd@v1 + with: + arch: ${{ matrix.msvc_arch }} + if: matrix.name == 'windows' + - name: Build wheels uses: pypa/cibuildwheel@v2.13.1 - # env: - # CIBW_SOME_OPTION: value + env: + CIBW_ARCHS: ${{ matrix.cibw_arch }} # ... # with: # package-dir: .