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

Loading…
Cancel
Save