@ -37,27 +37,27 @@ 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:6.4.0-27cf7b86212020d7e552bc13b1e084abb971da75
- image : us-docker.pkg.dev/protobuf-build/containers/test/linux/sanitize:7.1.2-d9624f2aa83cba3eaf906f751d75b36aacb9aa82
- targets : //pkg/... //src/... @com_google_protobuf_examples//... //third_party/utf8_range/... //conformance:conformance_framework_tests
# Override cases with custom images
- config : { name : "Bazel7" , flags : --noenable_bzlmod }
cache_key : Bazel7
image : "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-cf84e92285ca133b9c8104ad7b14d70e953cbb8e "
image : "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-27cf7b86212020d7e552bc13b1e084abb971da75 "
targets : "//src/... //third_party/utf8_range/..."
# TODO: remove -Wno-unreachable-code" when dropping C++14
- config : { name : "Bazel7 with Bzlmod" , flags : --enable_bzlmod --enable_workspace --per_file_copt=.*/absl/strings/string_view.h@-Wno-unreachable-code --cxxopt="-Wno-self-assign-overloaded" }
cache_key : Bazel7bzlmod
image : "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-cf84e92285ca133b9c8104ad7b14d70e953cbb8e "
image : "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-27cf7b86212020d7e552bc13b1e084abb971da75 "
targets : "//src/... //third_party/utf8_range/..."
- config : { name : "TCMalloc" }
cache_key : TcMalloc
image : "us-docker.pkg.dev/protobuf-build/containers/test/linux/tcmalloc:6.4.0-27cf7b86212020d7e552bc13b1e084abb971da75 "
image : "us-docker.pkg.dev/protobuf-build/containers/test/linux/tcmalloc:7.1.2-d9624f2aa83cba3eaf906f751d75b36aacb9aa82 "
targets : "//src/... //third_party/utf8_range/..."
- config : { name : "aarch64" }
cache_key : TcMalloc
cache_key : aarch64-bazel7
targets : "//src/... //src/google/protobuf/compiler:protoc_aarch64_test //third_party/utf8_range/..."
image : "us-docker.pkg.dev/protobuf-build/containers/test/linux/emulation:6.4.0-aarch64-08714ed7a713068c8418003a2d95f423d4b1eac9 "
image : "us-docker.pkg.dev/protobuf-build/containers/test/linux/emulation:7.1.2-aarch64-2920199ab0090ed427413a8e422e62695c8392a8 "
name : ${{ matrix.config.continuous-only && inputs.continuous-prefix || '' }} Linux ${{ matrix.config.name }}
runs-on : ${{ matrix.config.runner || 'ubuntu-latest' }}
steps:
@ -91,7 +91,7 @@ jobs:
- name : Run tests
uses : protocolbuffers/protobuf-ci/bazel-docker@v3
with:
image : us-docker.pkg.dev/protobuf-build/containers/test/linux/gcc:6.4.0-${{ matrix.version }}-27cf7b86212020d7e552bc13b1e084abb971da75
image : us-docker.pkg.dev/protobuf-build/containers/test/linux/gcc:7.1.2-${{ matrix.version }}-d9624f2aa83cba3eaf906f751d75b36aacb9aa82
credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
bazel-cache : cpp_linux/gcc-${{ matrix.version }}
bazel : test //pkg/... //src/... @com_google_protobuf_examples//... //third_party/utf8_range/... //conformance:conformance_framework_tests
@ -101,7 +101,7 @@ jobs:
fail-fast : false # Don't cancel all jobs if one fails.
matrix:
arch : [ x86_64, aarch64]
name : Linux Release ${{ matrix.arch}}
name : Linux Release ${{ matrix.arch }}
runs-on : ubuntu-20-4core
steps:
- name : Checkout pending changes
@ -112,7 +112,7 @@ jobs:
id : cross-compile
uses : protocolbuffers/protobuf-ci/cross-compile-protoc@v3
with:
image : us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:6.4.0-cf84e92285ca133b9c8104ad7b14d70e953cbb8e
image : us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:7.1.2-27cf7b86212020d7e552bc13b1e084abb971da75
credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
architecture : linux-${{ matrix.arch }}
- name : Setup sccache
@ -123,7 +123,7 @@ jobs:
- name : Run tests
uses : protocolbuffers/protobuf-ci/docker@v3
with:
image : us-docker.pkg.dev/protobuf-build/containers/test/linux/emulation:6.4.0-${{ matrix.arch }}-08714ed7a713068c8418003a2d95f423d4b1eac9
image : us-docker.pkg.dev/protobuf-build/containers/test/linux/emulation:7.1.2-${{ matrix.arch }}-2920199ab0090ed427413a8e422e62695c8392a8
credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
entrypoint : bash
command : >
@ -293,7 +293,7 @@ jobs:
if : ${{ !matrix.continuous-only || inputs.continuous-run }}
uses : protocolbuffers/protobuf-ci/docker@v3
with:
image : us-docker.pkg.dev/protobuf-build/containers/test/linux/gcc:6.4.0-12.2-27cf7b86212020d7e552bc13b1e084abb971da75
image : us-docker.pkg.dev/protobuf-build/containers/test/linux/gcc:7.1.2-12.2-d9624f2aa83cba3eaf906f751d75b36aacb9aa82
credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
entrypoint : bash
command : >-
@ -341,15 +341,9 @@ jobs:
matrix:
include:
- name : MacOS Bazel
os : macos-13
cache_key : macos-13
bazel : test //src/... //third_party/utf8_range/... //conformance:conformance_framework_tests
- name : MacOS Bazel 7
os : macos-13
cache_key : macos-13-bazel7
bazel : test //src/... //third_party/utf8_range/... //conformance:conformance_framework_tests
bazel_version : '7.1.2'
continuous-only : true
- name : MacOS Apple Silicon (build only) Bazel
os : macos-13
cache_key : macos-13-arm
@ -357,15 +351,9 @@ jobs:
# for Apple Silicon to detect issues there.
bazel : build --cpu=darwin_arm64 //src/... //third_party/utf8_range/... //conformance:conformance_framework_tests
- name : Windows Bazel
os : windows-2022
cache_key : windows-2022
bazel : test //src/... @com_google_protobuf_examples//... --test_tag_filters=-conformance --build_tag_filters=-conformance
- name : Windows Bazel 7
os : windows-2022
cache_key : windows-2022-bazel7
bazel : test //src/... @com_google_protobuf_examples//... --test_tag_filters=-conformance --build_tag_filters=-conformance
bazel_version : '7.1.2'
continuous-only : true
name : ${{ matrix.continuous-only && inputs.continuous-prefix || '' }} ${{ matrix.name }}
runs-on : ${{ matrix.os }}
steps:
@ -381,7 +369,7 @@ jobs:
credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
bazel : ${{ matrix.bazel }}
bazel-cache : cpp_${{ matrix.cache_key }}
version : ${{ matrix.bazel_version || '6.4.0 ' }}
version : ${{ matrix.bazel_version || '7.1.2 ' }}
non-linux-cmake:
strategy: