Skip to content

First experimentation with cibuildwheel for grpcio 1.63.0 #12

First experimentation with cibuildwheel for grpcio 1.63.0

First experimentation with cibuildwheel for grpcio 1.63.0 #12

name: Build python deps on linux
on:
push:
branches:
- feature/ga-python-builds
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
python_version: ["3.7","3.8","3.9","3.10","3.11","3.12"]
steps:
# Used to host cibuildwheel
- uses: actions/setup-python@v5
with:
python_version: ${{ matrix.python_version }}
- name: Download and Untar File - Unix
run: |
if [ "${{ matrix.os }}" == "windows-latest" ]; then
Invoke-WebRequest -Uri "https://files.pythonhosted.org/packages/0c/2a/23943e19b4bbbdad60a9d881e44cd53bb48b31c7419ebb7b983edfbbb708/grpcio-1.63.0.tar.gz" -OutFile "grpcio-1.63.0.tar.gz"
Expand-Archive -Path "grpcio-1.63.0.tar.gz" -DestinationPath "grpcio-1.63.0"
cd grpcio-1.63.0
else
wget -O grpcio-1.63.0.tar.gz https://files.pythonhosted.org/packages/0c/2a/23943e19b4bbbdad60a9d881e44cd53bb48b31c7419ebb7b983edfbbb708/grpcio-1.63.0.tar.gz
mkdir grpcio-1.63.0
tar -xzf grpcio-1.63.0.tar.gz -C grpcio-1.63.0
cd grpcio-1.63.0
fi
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.17.0
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl