Skip to content

Commit

Permalink
Building grpcio and grpciotools
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorguidi committed May 9, 2024
1 parent 8ee0394 commit d056d59
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/build_python_deps_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,41 @@ jobs:
with:
python-version: 3.9

- name: Pull source package from PyPI
- name: Pull source packages from PyPI
run: |
wget https://files.pythonhosted.org/packages/0c/2a/23943e19b4bbbdad60a9d881e44cd53bb48b31c7419ebb7b983edfbbb708/grpcio-1.63.0.tar.gz
tar xvf grpcio-1.63.0.tar.gz
wget https://files.pythonhosted.org/packages/86/15/8473774dfdd0fa901cfb1ad0d590c5a3e6a7c5906dc23b47619ccfc7fe62/grpcio_tools-1.63.0.tar.gz
tar xvf grpcio_tools-1.63.0.tar.gz
- name: Build wheel and upload to GCS
id: build_wheel
run: |
cd grpcio-1.63.0
python -m pip install --user --upgrade build
python -m build
WHEEL_FILE=$(find ${PWD}/dist/*.whl)
echo "WHEEL_FILE=${WHEEL_FILE}" >> $GITHUB_OUTPUT
GRPCIO_WHEEL_FILE=$(find ${PWD}/dist/*.whl)
echo "GRPCIO_WHEEL_FILE=${GRPCIO_WHEEL_FILE}" >> $GITHUB_OUTPUT
cd ../grpcio_tools-1.63.0
python -m pip install --user --upgrade build
python -m build
GRPCIOTOOLS_WHEEL_FILE=$(find ${PWD}/dist/*.whl)
echo "GRPCIOTOOLS_WHEEL_FILE=${GRPCIOTOOLS_WHEEL_FILE}" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
id: upload_grpcio
with:
name: "grpcio_ubuntu_py39"
path: ${{ steps.build_wheel.outputs.GRPCIO_WHEEL_FILE }}
if-no-files-found: error
retention-days: 1
compression-level: 0
overwrite: false

- uses: actions/upload-artifact@v4
id: upload_grpciotools
with:
name: "python 3.7 grpcio 1.63 ubuntu"
path: ${{ steps.build_wheel.outputs.WHEEL_FILE }}
name: "grpciotools_ubuntu_py39"
path: ${{ steps.build_wheel.outputs.GRPCIOTOOLS_WHEEL_FILE }}
if-no-files-found: error
retention-days: 1
compression-level: 0
Expand Down

0 comments on commit d056d59

Please sign in to comment.