Switch to docker image for protoc build in java linkage test

This will prevent non-hermetic outages and better unify our test infrastructure.

PiperOrigin-RevId: 521779648
pull/12401/head
Mike Kruskal 2 years ago committed by Copybara-Service
parent 084d9702d6
commit 8894d03bae
  1. 14
      .github/workflows/test_java.yml

@ -55,14 +55,16 @@ jobs:
with: with:
ref: ${{ inputs.safe-checkout }} ref: ${{ inputs.safe-checkout }}
- name: Build protoc - name: Build protoc
uses: protocolbuffers/protobuf-ci/bazel@v1 id: build-protoc
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v1
with: with:
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:5.1.1-6361b3a6e5c97e9951d03a4de28542fc45f1adab
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }} credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
bazel-cache: java_linux_linkage architecture: linux-x86_64
bash: | - name: Move protoc into place and clean up
$BAZEL build //:protoc $BAZEL_FLAGS run: |
# The java build setup expects protoc in the root directory. mv ${{ steps.build-protoc.outputs.protoc }} protoc
cp bazel-bin/protoc . sudo rm -rf _build
- name: Install snapshot version locally - name: Install snapshot version locally
run: | run: |
cd java cd java

Loading…
Cancel
Save