|
|
@ -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 |
|
|
|