mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Fix arch tests by adding file to the Docker images
PiperOrigin-RevId: 881524967
This commit is contained in:
parent
4efe3af06b
commit
bd2543656e
5 changed files with 7 additions and 16 deletions
2
.github/workflows/test_bazel.yml
vendored
2
.github/workflows/test_bazel.yml
vendored
|
|
@ -122,7 +122,7 @@ jobs:
|
|||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:8.0.1-e78301df86b3e4c46ec9ac4d98be00e19305d8f3
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:8.0.1-d415763a389bb62a6f126b08c992e83f9f7dc1b4
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
bazel-cache: "bazel-tests"
|
||||
bazel: test //bazel/...
|
||||
|
|
|
|||
8
.github/workflows/test_cpp.yml
vendored
8
.github/workflows/test_cpp.yml
vendored
|
|
@ -37,16 +37,16 @@ jobs:
|
|||
- { name: No-RTTI, flags: --cxxopt=-fno-rtti, continuous-only: true }
|
||||
include:
|
||||
# Set defaults
|
||||
- image: us-docker.pkg.dev/protobuf-build/containers/test/linux/sanitize:8.0.1-b77fdae6d4771789dfc66a56bf8d806354e8011a
|
||||
- image: us-docker.pkg.dev/protobuf-build/containers/test/linux/sanitize:8.0.1-d415763a389bb62a6f126b08c992e83f9f7dc1b4
|
||||
- targets: //pkg/... //src/... //third_party/utf8_range/... //conformance:conformance_framework_tests
|
||||
# Override cases with custom images
|
||||
- config: { name: "Bazel8", flags: --cxxopt="-Wno-self-assign-overloaded" }
|
||||
cache_key: Bazel8
|
||||
image: "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:8.0.1-e78301df86b3e4c46ec9ac4d98be00e19305d8f3"
|
||||
image: "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:8.0.1-d415763a389bb62a6f126b08c992e83f9f7dc1b4"
|
||||
targets: "//src/... //third_party/utf8_range/..."
|
||||
- config: { name: "TCMalloc" }
|
||||
cache_key: TcMalloc
|
||||
image: "us-docker.pkg.dev/protobuf-build/containers/test/linux/tcmalloc:8.0.1-b77fdae6d4771789dfc66a56bf8d806354e8011a"
|
||||
image: "us-docker.pkg.dev/protobuf-build/containers/test/linux/tcmalloc:8.0.1-d415763a389bb62a6f126b08c992e83f9f7dc1b4"
|
||||
targets: "//src/... //third_party/utf8_range/..."
|
||||
- config: { name: "aarch64", flags: "--platforms=//build_defs:linux-aarch_64" }
|
||||
cache_key: aarch64-bazel8
|
||||
|
|
@ -118,7 +118,7 @@ jobs:
|
|||
id: cross-compile
|
||||
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v5
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:8.0.1-e78301df86b3e4c46ec9ac4d98be00e19305d8f3
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:8.0.1-d415763a389bb62a6f126b08c992e83f9f7dc1b4
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
architecture: linux-${{ matrix.arch }}
|
||||
- name: Setup sccache
|
||||
|
|
|
|||
2
.github/workflows/test_upb.yml
vendored
2
.github/workflows/test_upb.yml
vendored
|
|
@ -51,7 +51,7 @@ jobs:
|
|||
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
with:
|
||||
image: ${{ matrix.config.image || 'us-docker.pkg.dev/protobuf-build/containers/test/linux/sanitize:8.0.1-12e21b8dda91028bc14212a3ab582c7c4d149fac' }}
|
||||
image: ${{ matrix.config.image || 'us-docker.pkg.dev/protobuf-build/containers/test/linux/sanitize:8.0.1-d415763a389bb62a6f126b08c992e83f9f7dc1b4' }}
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
bazel-cache: upb-bazel
|
||||
bazel: test //benchmarks/... //lua/... //python/... //upb/... //upb_generator/... ${{ matrix.config.flags }}
|
||||
|
|
|
|||
|
|
@ -77,11 +77,6 @@ config_setting(
|
|||
"@platforms//os:linux",
|
||||
"@platforms//cpu:aarch64",
|
||||
],
|
||||
# TODO: Remove this once the arch tests can successfully run on the "emulation"
|
||||
# docker images.
|
||||
flag_values = {
|
||||
"//toolchain:release": "True",
|
||||
},
|
||||
)
|
||||
|
||||
config_setting(
|
||||
|
|
@ -90,11 +85,6 @@ config_setting(
|
|||
"@platforms//os:linux",
|
||||
"@platforms//cpu:x86_64",
|
||||
],
|
||||
# TODO: Remove this once the arch tests can successfully run on the "emulation"
|
||||
# docker images.
|
||||
flag_values = {
|
||||
"//toolchain:release": "True",
|
||||
},
|
||||
)
|
||||
|
||||
# Android NDK builds can specify different crosstool_top flags to choose which
|
||||
|
|
|
|||
|
|
@ -142,6 +142,7 @@ def build_targets(name):
|
|||
"//src/google/protobuf/stubs:lite",
|
||||
"//src/google/protobuf/util:differencer",
|
||||
"@abseil-cpp//absl/base:core_headers",
|
||||
"@abseil-cpp//absl/base:no_destructor",
|
||||
"@abseil-cpp//absl/container:flat_hash_map",
|
||||
"@abseil-cpp//absl/log:absl_check",
|
||||
"@abseil-cpp//absl/log:absl_log",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue