Fixing windows architecture #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build python deps on linux | |
on: | |
push: | |
branches: | |
- feature/ga-python-builds | |
jobs: | |
build_wheels: | |
name: ${{ matrix.wheel_combinations[0] }}-${{ matrix.wheel_combinations[1] }}-py${{ matrix.python_versions[0] }} | |
runs-on: ${{ matrix.wheel_combinations[0] }} | |
strategy: | |
matrix: | |
python_versions: [ | |
["3.7","cp37-*"], | |
["3.8","cp38-*"], | |
["3.9","cp39-*"], | |
["3.10","cp310-*"], | |
["3.11","cp311-*"], | |
["3.12","cp312-*"], | |
] | |
wheel_combinations: [ | |
#["ubuntu-latest", "x86_64"], | |
["windows-latest", "AMD64"], | |
#["macos13", "x86_64"], | |
#["macos13", "arm64"], | |
#["macos14", "x86_64"], | |
#["macos14", "arm64"], | |
] | |
fail-fast: false | |
steps: | |
# Used to host cibuildwheel | |
- uses: actions/setup-python@v5 | |
with: | |
python_version: ${{ matrix.python_versions[0] }} | |
- name: Install cibuildwheel | |
run: python -m pip install cibuildwheel==2.17.0 | |
- name: Download and Untar File - Windows | |
if: matrix.wheel_combinations[0] == 'windows-latest' | |
run: | | |
Invoke-WebRequest -Uri "https://files.pythonhosted.org/packages/0c/2a/23943e19b4bbbdad60a9d881e44cd53bb48b31c7419ebb7b983edfbbb708/grpcio-1.63.0.tar.gz" -OutFile "grpcio-1.63.0.tar.gz" | |
- name: Download and Untar File - Unix | |
if: matrix.wheel_combinations[0] != 'windows-latest' | |
run: | | |
wget -O grpcio-1.63.0.tar.gz https://files.pythonhosted.org/packages/0c/2a/23943e19b4bbbdad60a9d881e44cd53bb48b31c7419ebb7b983edfbbb708/grpcio-1.63.0.tar.gz | |
- name: Build wheels | |
run: | | |
python -m cibuildwheel grpcio-1.63.0.tar.gz --output-dir wheelhouse | |
# to supply options, put them in 'env', like: | |
env: | |
CIBW_ARCHS: ${{ matrix.wheel_combinations[1] }} | |
CIBW_BUILD: ${{ matrix.python_versions[1] }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: cibw-wheels-${{ matrix.wheel_combinations[0] }}-${{ strategy.job-index }} | |
path: ./wheelhouse/*.whl | |