Merge pull request #755 from haberman:fix-prs

PiperOrigin-RevId: 470588004
pull/13171/head
Copybara-Service 2 years ago
commit a694d2369b
  1. 6
      .github/workflows/bazel_tests.yml
  2. 2
      .github/workflows/python_tests.yml

@ -36,13 +36,13 @@ jobs:
with:
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
export_environment_variables: true
if: ${{ github.repository_owner == 'protocolbuffers' }}
if: ${{ github.event.pull_request.head.repo.full_name == 'protocolbuffers/upb' }}
- name: Set up Bazel read/write caching
run: echo "BAZEL_CACHE_AUTH=--google_default_credentials" >> $GITHUB_ENV
if: ${{ github.repository_owner == 'protocolbuffers' }}
if: ${{ github.event.pull_request.head.repo.full_name == 'protocolbuffers/upb' }}
- name: Set up Bazel read-only caching
run: echo "BAZEL_CACHE_AUTH=--remote_upload_local_results=false" >> $GITHUB_ENV
if: ${{ github.repository_owner != 'protocolbuffers' }}
if: ${{ github.event.pull_request.head.repo.full_name != 'protocolbuffers/upb' }}
- name: Setup Python venv
run: rm -rf /tmp/venv && python3 -m venv /tmp/venv
- name: Install dependencies

@ -13,7 +13,7 @@ jobs:
build_wheels:
name: Build Wheels
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'protocolbuffers' }}
if: ${{ github.event.pull_request.head.repo.full_name == 'protocolbuffers/upb' }}
env:
DOCKER_IMAGE: gcr.io/protobuf-build/bazel/linux@sha256:2bfd061284eff8234f2fcca16d71d43c69ccf3a22206628b54c204a6a9aac277
BAZEL_CACHE: --remote_cache=https://storage.googleapis.com/protobuf-bazel-cache --google_default_credentials

Loading…
Cancel
Save