Update upb GCC test run to use upb's workspace

Currently all our upb CI coverage is running from within the protobuf workspace
and referring to upb as the external repo `@upb`. This change makes the GCC
test run cd into upb and use its workspace instead, just to make sure that
builds in the upb workspace have some coverage.

PiperOrigin-RevId: 560197956
pull/13702/head
Adam Cozzette 2 years ago committed by Copybara-Service
parent 9e300f18ef
commit f85a338d79
  1. 7
      .github/workflows/test_upb.yml

@ -58,7 +58,12 @@ jobs:
image: "us-docker.pkg.dev/protobuf-build/containers/test/linux/gcc:12.2-6.3.0-518b4fcd8d0ded2484c94f02e835526cacfdac2d"
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
bazel-cache: "upb-bazel-gcc"
bazel: test --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 -c opt @upb//...
# The other test runs use the protobuf workspace. For this one let's
# cd into upb and use its workspace instead, to make sure we cover
# that use case.
bash: >-
cd upb &&
bazel test $BAZEL_FLAGS --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 -c opt //...
windows:
strategy:

Loading…
Cancel
Save