build-wheels-win32.yaml (1444B)
1 name: build-wheels-win32 2 3 on: 4 push: 5 branches: 6 - wheel 7 tags: 8 - '*' 9 workflow_dispatch: 10 11 concurrency: 12 group: build-wheels-win32-${{ github.ref }} 13 cancel-in-progress: true 14 15 jobs: 16 build_wheels: 17 name: ${{ matrix.python-version }} 18 runs-on: ${{ matrix.os }} 19 strategy: 20 fail-fast: false 21 matrix: 22 os: [windows-latest] 23 python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"] 24 25 steps: 26 - uses: actions/checkout@v4 27 28 # see https://cibuildwheel.readthedocs.io/en/stable/changelog/ 29 # for a list of versions 30 - name: Build wheels 31 uses: pypa/cibuildwheel@v2.16.5 32 env: 33 CIBW_BUILD: "${{ matrix.python-version}}-* " 34 CIBW_ENVIRONMENT: KALDI_NATIVE_FBANK_CMAKE_ARGS="-A Win32" 35 CIBW_SKIP: "*-win_amd64" 36 CIBW_BUILD_VERBOSITY: 3 37 38 - name: Display wheels 39 shell: bash 40 run: | 41 ls -lh ./wheelhouse/ 42 43 - uses: actions/upload-artifact@v4 44 with: 45 name: wheel-${{ matrix.python-version }} 46 path: ./wheelhouse/*.whl 47 48 - name: Publish wheels to PyPI 49 env: 50 TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} 51 TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} 52 shell: bash 53 run: | 54 python3 -m pip install --upgrade pip 55 python3 -m pip install wheel twine setuptools 56 57 twine upload ./wheelhouse/*.whl