Skip to content

First iteration on GA actions #1

First iteration on GA actions

First iteration on GA actions #1

name: Build python deps on linux
on:
push:
branches:
- feature/ga-python-builds
jobs:
build_wheel:
permissions:
contents: 'read'
id-token: 'write'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
workload_identity_provider: ${{ secrets.PythonBuildsBucketIdp }}
service_account: ${{ secrets.PythonBuildsBucketServiceAccount }}
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
with:
version: '>= 363.0.0'
- name: Pull source package 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
- name: Build wheel and upload to GCS
run: |
python -m pip install --user --upgrade build
python -m build
WHEEL_FILE=$(find ./dist/*.whl)
echo "WHEEL_FILE=${WHEEL_FILE}" >> GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
with:
name: "python 3.7 grpcio 1.63 ubuntu"
path: ${{ steps.vars.outputs.WHEEL_FILE }}
if-no-files-found: error
retention-days: 1
compression-level: 0
overwrite: false