1616 build :
1717 runs-on : ubuntu-latest
1818
19+ strategy :
20+ matrix :
21+ python_version : [3.9, 3.12]
22+
1923 steps :
2024 - uses : actions/checkout@v4
2125
@@ -24,41 +28,39 @@ jobs:
2428 with :
2529 platforms : " linux/ppc64le"
2630
27- - name : Install
28- id : install
31+ - name : Build grpcio wheel for Python ${{ matrix.python_version }}
2932 run : >-
3033 docker run --rm --platform "linux/ppc64le"
3134 --mount "type=bind,src=$(pwd),dst=/build"
32- -w "/build" ppc64le/python:3.9 /bin/bash -ec '
35+ -w "/build" ppc64le/python:${{ matrix.python_version }} /bin/bash -ec '
3336 export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1;
34- pip install --upgrade pip;
35- pip install --upgrade setuptools;
37+ pip install --upgrade pip setuptools wheel;
3638 pip install grpcio==${{ inputs.release }};
37- WHEEL_PATH=$(find /root/.cache/pip/wheels/ -name "grpcio*.whl");
38- cp $WHEEL_PATH /build/;'
39+ WHEEL_PATH=$(find /root/.cache/pip/wheels/ -name "grpcio*.whl" | head -n 1 );
40+ cp " $WHEEL_PATH" /build/;'
3941
40- - name : Create a tag
42+ - name : Create Git Tag (only once)
43+ if : matrix.python_version == '3.9'
4144 env :
4245 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4346 run : |
4447 git config user.name "GitHub Actions"
45- git config user.email "<> "
48+ git config user.email "actions@github.com "
4649 git tag ${{ inputs.release }}
4750 git push origin ${{ inputs.release }} -f
4851
49- - name : Capture the file
52+ - name : Capture wheel path
5053 id : capture
5154 run : |
52- WHEEL_PATH=$(find $PWD -name "grpcio*.whl")
53- echo "Found $WHEEL_PATH"
54- echo "ARTIFACT=$WHEEL_PATH" >> $GITHUB_OUTPUT
55+ WHEEL=$(find . -name "grpcio*.whl" -type f)
56+ echo "WHEEL=$WHEEL" >> $GITHUB_OUTPUT
5557
56- - name : Create Release
58+ - name : Upload to GitHub Release
5759 uses : softprops/action-gh-release@v2
5860 with :
5961 name : ${{ inputs.release }}
6062 tag_name : ${{ inputs.release }}
6163 token : ${{ secrets.GITHUB_TOKEN }}
62- files : ${{ steps.capture.outputs.ARTIFACT }}
64+ files : ${{ steps.capture.outputs.WHEEL }}
6365 draft : false
6466 prerelease : false
0 commit comments