mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Update protobuf repository to use the newest version (v6) of protobuf-ci
PiperOrigin-RevId: 967400094
This commit is contained in:
parent
b6ca8b9fb1
commit
0a52e10e82
21 changed files with 232 additions and 251 deletions
123
.bazelrc
123
.bazelrc
|
|
@ -11,30 +11,43 @@ build --@com_google_protobuf//bazel/toolchains:prefer_prebuilt_protoc=false
|
|||
# This flag works around some issues with Rust linking.
|
||||
build --@rules_rust//rust/settings:experimental_use_cc_common_link=True
|
||||
|
||||
build:dbg --compilation_mode=dbg
|
||||
# Build with all --incompatible flags that we can. This helps us prepare for
|
||||
# upcoming breaking changes in Bazel. This list was generated for Bazel 6 by
|
||||
# running bazelisk with the --migrate flag and filtering out all flags that
|
||||
# default to true or are deprecated.
|
||||
build --incompatible_check_sharding_support
|
||||
build --incompatible_config_setting_private_default_visibility
|
||||
build --incompatible_default_to_explicit_init_py
|
||||
build --incompatible_disable_native_android_rules
|
||||
build --incompatible_disable_starlark_host_transitions
|
||||
build --incompatible_disable_target_provider_fields
|
||||
build --incompatible_disallow_empty_glob
|
||||
build --incompatible_dont_use_javasourceinfoprovider
|
||||
build --incompatible_enable_android_toolchain_resolution
|
||||
build --incompatible_enable_apple_toolchain_resolution
|
||||
build --incompatible_exclusive_test_sandboxed
|
||||
build --incompatible_top_level_aspects_require_providers
|
||||
build --incompatible_use_cc_configure_from_rules_cc
|
||||
|
||||
build:opt --compilation_mode=opt
|
||||
# We cannot yet build successfully with the following flags:
|
||||
# --incompatible_disallow_struct_provider_syntax
|
||||
# --incompatible_no_implicit_file_export
|
||||
# --incompatible_no_rule_outputs_param
|
||||
# --incompatible_stop_exporting_language_modules
|
||||
# --incompatible_strict_action_env
|
||||
# --incompatible_visibility_private_attributes_at_definition
|
||||
|
||||
build:san-common --config=dbg --strip=never --copt=-O0 --copt=-fno-omit-frame-pointer
|
||||
# We might be compatible with these flags, but they are not available in all
|
||||
# Bazel versions we are currently using:
|
||||
# --incompatible_disable_objc_library_transition
|
||||
# --incompatible_fail_on_unknown_attributes
|
||||
# --incompatible_merge_fixed_and_default_shell_env
|
||||
# --incompatible_remote_use_new_exit_code_for_lost_inputs
|
||||
# --incompatible_sandbox_hermetic_tmp
|
||||
|
||||
build:asan --config=san-common --copt=-fsanitize=address --linkopt=-fsanitize=address
|
||||
# ASAN hits ODR violations with shared linkage due to rules_proto.
|
||||
build:asan --dynamic_mode=off
|
||||
|
||||
build:msan --config=san-common --copt=-fsanitize=memory --linkopt=-fsanitize=memory
|
||||
build:msan --copt=-fsanitize-memory-track-origins
|
||||
build:msan --copt=-fsanitize-memory-use-after-dtor
|
||||
build:msan --action_env=MSAN_OPTIONS=poison_in_dtor=1
|
||||
|
||||
build:tsan --config=san-common --copt=-fsanitize=thread --linkopt=-fsanitize=thread
|
||||
|
||||
build:ubsan --config=san-common --copt=-fsanitize=undefined --linkopt=-fsanitize=undefined
|
||||
build:ubsan --action_env=UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1
|
||||
# Workaround for the fact that Bazel links with $CC, not $CXX
|
||||
# https://github.com/bazelbuild/bazel/issues/11122#issuecomment-613746748
|
||||
build:ubsan --copt=-fno-sanitize=function --copt=-fno-sanitize=vptr
|
||||
# Abseil passes nullptr to memcmp with 0 size
|
||||
build:ubsan --copt=-fno-sanitize=nonnull-attribute
|
||||
# For easier debugging of build failures.
|
||||
common --announce_rc
|
||||
build --verbose_failures
|
||||
|
||||
# Important: this flag ensures that we remain compliant with the C++ layering
|
||||
# check.
|
||||
|
|
@ -47,7 +60,71 @@ common --incompatible_check_testonly_for_output_files
|
|||
# Import Bazel 9 specific flags (such as --repo_contents_cache)
|
||||
# TODO: Remove it when --repo_contents_cache issue
|
||||
# has been resolved in bazel
|
||||
try-import-if-bazel-version >=9.0.0 %workspace%/ci/bazel9.bazelrc
|
||||
try-import-if-bazel-version >=9.0.0 %workspace%/bazel9.bazelrc
|
||||
|
||||
# ==============================================================================
|
||||
# COMPILATION MODES & SANITIZERS
|
||||
# ==============================================================================
|
||||
build:dbg --compilation_mode=dbg
|
||||
build:opt --compilation_mode=opt
|
||||
|
||||
build:san-common --config=dbg --strip=never --copt=-O1 --copt=-fno-omit-frame-pointer
|
||||
# TODO ASAN hits ODR violations with shared linkage due to
|
||||
# rules_proto / cc_proto_library cyclic dependency.
|
||||
build:san-common --dynamic_mode=off
|
||||
|
||||
build:asan --config=san-common --copt=-fsanitize=address --linkopt=-fsanitize=address
|
||||
|
||||
build:msan --config=san-common --copt=-fsanitize=memory --linkopt=-fsanitize=memory
|
||||
build:msan --copt=-fsanitize-memory-track-origins
|
||||
build:msan --copt=-fsanitize-memory-use-after-dtor
|
||||
build:msan --action_env=MSAN_OPTIONS=poison_in_dtor=1
|
||||
|
||||
# Use our instrumented LLVM libc++ in Kokoro.
|
||||
build:docker-msan --config=msan
|
||||
build:docker-msan --linkopt=-L/opt/libcxx_msan/lib --linkopt=-lc++abi
|
||||
build:docker-msan --linkopt=-Wl,-rpath,/opt/libcxx_msan/lib
|
||||
build:docker-msan --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++
|
||||
|
||||
build:tsan --config=san-common --copt=-fsanitize=thread --linkopt=-fsanitize=thread
|
||||
|
||||
build:ubsan --config=san-common --copt=-fsanitize=undefined --linkopt=-fsanitize=undefined
|
||||
build:ubsan --action_env=UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1
|
||||
# Workaround for the fact that Bazel links with $CC, not $CXX
|
||||
# https://github.com/bazelbuild/bazel/issues/11122#issuecomment-613746748
|
||||
build:ubsan --copt=-fno-sanitize=function --copt=-fno-sanitize=vptr
|
||||
# Abseil passes nullptr to memcmp with 0 size
|
||||
build:ubsan --copt=-fno-sanitize=nonnull-attribute
|
||||
|
||||
|
||||
# ==============================================================================
|
||||
# LINUX & macOS PLATFORM CONFIG
|
||||
# ==============================================================================
|
||||
build:posix --cxxopt="-Woverloaded-virtual"
|
||||
build:posix --copt="-Wpointer-arith"
|
||||
build:posix --copt="-Werror" --copt="-Wno-sign-compare" --copt="-Wno-sign-conversion" --copt="-Wno-error=sign-conversion" --copt="-Wno-deprecated-declarations"
|
||||
|
||||
build:linux --config=posix
|
||||
|
||||
build:macos --config=posix
|
||||
common:macos --xcode_version_config=@com_google_protobuf//.github:host_xcodes
|
||||
|
||||
build:macos --apple_crosstool_top=@local_config_apple_cc//:toolchain
|
||||
build:macos --crosstool_top=@local_config_apple_cc//:toolchain
|
||||
build:macos --host_crosstool_top=@local_config_apple_cc//:toolchain
|
||||
|
||||
|
||||
# ==============================================================================
|
||||
# WINDOWS PLATFORM CONFIG
|
||||
# ==============================================================================
|
||||
# Workaround for maximum path length issues
|
||||
build:windows --cxxopt=/std:c++17 --host_cxxopt=/std:c++17
|
||||
common:windows --enable_runfiles
|
||||
|
||||
# Use clang-cl by default on Windows (see https://github.com/protocolbuffers/protobuf/issues/20085).
|
||||
build:windows --extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows-clang-cl --extra_execution_platforms=//build_defs:x64_windows-clang-cl --host_platform=//build_defs:x64_windows-clang-cl
|
||||
build:windows --extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows-clang-cl
|
||||
build:clang-cl --extra_execution_platforms=//build_defs:x64_windows-clang-cl --host_platform=//build_defs:x64_windows-clang-cl
|
||||
build:msvc-cl --extra_execution_platforms=//build_defs:x64_windows-msvc-cl --host_platform=//build_defs:x64_windows-msvc-cl
|
||||
build:windows --config=clang-cl
|
||||
# Set BAZEL_SH, this is needed for bazel 8.6.0 WORKSPACE on windows
|
||||
build:windows --action_env=BAZEL_SH="C:/Program Files/Git/bin/bash.exe"
|
||||
|
|
|
|||
4
.github/workflows/staleness_check.yml
vendored
4
.github/workflows/staleness_check.yml
vendored
|
|
@ -27,7 +27,7 @@ jobs:
|
|||
if: ${{ github.event.repository.full_name == 'protocolbuffers/protobuf' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ jobs:
|
|||
# In branches where automatic updates work as post-submits, we don't want to run staleness
|
||||
# tests along with user changes. Any stale files will be automatically fixed in a follow-up
|
||||
# commit.
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v6
|
||||
with:
|
||||
version: 9.2.0 # Bazel version
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
|
|||
16
.github/workflows/test_bazel.yml
vendored
16
.github/workflows/test_bazel.yml
vendored
|
|
@ -43,7 +43,7 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ jobs:
|
|||
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v6
|
||||
with:
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
bazel-cache: examples-${{ matrix.bazelversion }}-${{ matrix.bzlmod }}-${{ matrix.toolchain_resolution }}
|
||||
|
|
@ -88,11 +88,11 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:9.2.0-4d8e80ef93b0219fb907af9dd4596b92946995d8
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -108,11 +108,15 @@ jobs:
|
|||
runs-on: ${{ matrix.runner }}
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Windows startup flags
|
||||
if: ${{ runner.os == 'Windows' }}
|
||||
shell: bash
|
||||
run: echo "startup --output_user_root=C:/ --windows_enable_symlinks" >> .bazelrc
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v6
|
||||
with:
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
bazel-cache: "bazel-tests-${{ matrix.runner }}"
|
||||
|
|
|
|||
77
.github/workflows/test_cpp.yml
vendored
77
.github/workflows/test_cpp.yml
vendored
|
|
@ -61,12 +61,12 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Prime the cache
|
||||
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: ${{ matrix.image }}
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -75,7 +75,7 @@ jobs:
|
|||
exclude-targets: ${{ matrix.exclude-targets }}
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: ${{ matrix.image }}
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -92,12 +92,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Prime the cache
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/gcc:8.7.0-${{ matrix.version }}-5bb1a8fdfc30f8c21c1b38cf053d2db9fca865a7
|
||||
|
|
@ -105,7 +105,7 @@ jobs:
|
|||
bazel-cache: cpp_linux/gcc-${{ matrix.version }}
|
||||
bazel: fetch //pkg/... //src/... //third_party/utf8_range/... //conformance:conformance_framework_tests
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/gcc:8.7.0-${{ matrix.version }}-5bb1a8fdfc30f8c21c1b38cf053d2db9fca865a7
|
||||
|
|
@ -130,7 +130,7 @@ jobs:
|
|||
run: df -h
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Check disk space after checkout
|
||||
|
|
@ -140,7 +140,7 @@ jobs:
|
|||
- name: Cross compile protoc for ${{ matrix.arch }}
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
id: cross-compile
|
||||
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v5
|
||||
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:8.7.0-4d8e80ef93b0219fb907af9dd4596b92946995d8
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -151,7 +151,7 @@ jobs:
|
|||
run: df -h
|
||||
- name: Setup sccache
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v5
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v6
|
||||
with:
|
||||
cache-prefix: linux-release-${{ matrix.arch }}
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -161,7 +161,7 @@ jobs:
|
|||
run: df -h
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/emulation:8.7.0-${{ matrix.arch }}-5bb1a8fdfc30f8c21c1b38cf053d2db9fca865a7
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -205,20 +205,20 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Setup sccache
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v5
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v6
|
||||
with:
|
||||
cache-prefix: linux-cmake
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/cmake:3.16.9-9626718698895971df3953d4aa2321d7425f3c5f
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -247,20 +247,20 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Setup sccache
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v5
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v6
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
with:
|
||||
cache-prefix: linux-cmake-install
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/cmake:3.16.9-9626718698895971df3953d4aa2321d7425f3c5f
|
||||
|
|
@ -314,7 +314,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
|
|
@ -346,20 +346,20 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Setup sccache
|
||||
if: ${{ inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v5
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v6
|
||||
with:
|
||||
cache-prefix: linux-cmake-examples
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
||||
- name: Run tests
|
||||
if: ${{ inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/cmake:3.16.9-9626718698895971df3953d4aa2321d7425f3c5f
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -388,20 +388,20 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Setup sccache
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v5
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v6
|
||||
with:
|
||||
cache-prefix: linux-cmake-gcc
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/gcc:8.7.0-12.5-5bb1a8fdfc30f8c21c1b38cf053d2db9fca865a7
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -420,18 +420,18 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Setup sccache
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v5
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v6
|
||||
with:
|
||||
cache-prefix: linux-cmake-32-bit
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/32bit@sha256:d6028ab408c49932836cdc514116f06886d7f6868a4d430630aa52adc5aee2fc
|
||||
platform: linux/386
|
||||
|
|
@ -476,12 +476,16 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Windows startup flags
|
||||
if: ${{ runner.os == 'Windows' && (!matrix.continuous-only || inputs.continuous-run) }}
|
||||
shell: bash
|
||||
run: echo "startup --output_user_root=C:/ --windows_enable_symlinks" >> .bazelrc
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v6
|
||||
with:
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
bazel: ${{ matrix.bazel }}
|
||||
|
|
@ -536,10 +540,13 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Windows startup flags
|
||||
if: ${{ runner.os == 'Windows' && (!matrix.continuous-only || inputs.continuous-run) }}
|
||||
shell: bash
|
||||
run: echo "startup --output_user_root=C:/ --windows_enable_symlinks" >> .bazelrc
|
||||
- name: Setup MSVC
|
||||
if: ${{ runner.os == 'Windows' && (!matrix.continuous-only || inputs.continuous-run) }}
|
||||
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
||||
|
|
@ -549,7 +556,7 @@ jobs:
|
|||
|
||||
- name: Setup sccache
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v5
|
||||
uses: protocolbuffers/protobuf-ci/sccache@v6
|
||||
with:
|
||||
cache-prefix: ${{ matrix.cache-prefix }}
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -557,7 +564,7 @@ jobs:
|
|||
# Install phase.
|
||||
- name: Configure CMake for install
|
||||
if: ${{ matrix.install-flags && (!matrix.continuous-only || inputs.continuous-run) }}
|
||||
uses: protocolbuffers/protobuf-ci/bash@v5
|
||||
uses: protocolbuffers/protobuf-ci/bash@v6
|
||||
with:
|
||||
bazel-version: 8.7.0
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -583,7 +590,7 @@ jobs:
|
|||
|
||||
- name: Configure CMake
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bash@v5
|
||||
uses: protocolbuffers/protobuf-ci/bash@v6
|
||||
with:
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
bazel-version: 8.7.0
|
||||
|
|
@ -612,7 +619,7 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Checkout Abseil HEAD
|
||||
|
|
@ -623,7 +630,7 @@ jobs:
|
|||
path: abseil-cpp-head
|
||||
- name: Run tests
|
||||
if: ${{ inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:9.2.0-4d8e80ef93b0219fb907af9dd4596b92946995d8
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
|
|||
20
.github/workflows/test_csharp.yml
vendored
20
.github/workflows/test_csharp.yml
vendored
|
|
@ -19,13 +19,13 @@ jobs:
|
|||
runs-on: ubuntu-22-4core
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
# TODO Run this with Bazel once codegen is handled properly.
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/csharp:9.2.0-3.1.415-8.0.100-5bb1a8fdfc30f8c21c1b38cf053d2db9fca865a7
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -41,7 +41,7 @@ jobs:
|
|||
run: sudo rm -rf _build .repository-cache
|
||||
|
||||
- name: Run conformance tests
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/csharp:9.2.0-3.1.415-8.0.100-5bb1a8fdfc30f8c21c1b38cf053d2db9fca865a7
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -53,17 +53,19 @@ jobs:
|
|||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Windows startup flags
|
||||
shell: bash
|
||||
run: echo "startup --output_user_root=C:/ --windows_enable_symlinks" >> .bazelrc
|
||||
- name: Setup dotnet
|
||||
uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0
|
||||
with:
|
||||
dotnet-version: '8.0.x'
|
||||
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/bash@v5
|
||||
uses: protocolbuffers/protobuf-ci/bash@v6
|
||||
with:
|
||||
bazel-version: 9.2.0
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -76,14 +78,14 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Build protobuf C# tests under x86_64 docker image
|
||||
# Tests are built "dotnet publish" because we want all the dependencies to the copied to the destination directory
|
||||
# (we want to avoid references to ~/.nuget that won't be available in the subsequent docker run)
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
with:
|
||||
image: mcr.microsoft.com/dotnet/sdk:8.0.100-bookworm-slim
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -100,7 +102,7 @@ jobs:
|
|||
# running under current user's UID and GID. To be able to do that, we need to provide a home directory for the user
|
||||
# otherwise the UID would be homeless under the docker container and pip install wouldn't work. For simplicity,
|
||||
# we just run map the user's home to a throwaway temporary directory
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
with:
|
||||
image: mcr.microsoft.com/dotnet/sdk:8.0.100-bookworm-slim-arm64v8
|
||||
skip-staleness-check: true
|
||||
|
|
|
|||
4
.github/workflows/test_hpb.yml
vendored
4
.github/workflows/test_hpb.yml
vendored
|
|
@ -29,11 +29,11 @@ jobs:
|
|||
runs-on: ubuntu-22-4core
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: ${{ matrix.image }}
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
|
|||
12
.github/workflows/test_java.yml
vendored
12
.github/workflows/test_java.yml
vendored
|
|
@ -62,12 +62,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
with:
|
||||
image: ${{ matrix.image }}
|
||||
|
|
@ -81,11 +81,11 @@ jobs:
|
|||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Checkout pending changes
|
||||
# uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
# uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
# with:
|
||||
# ref: ${{ inputs.safe-checkout }}
|
||||
# - name: Run Linkage Monitor test
|
||||
# uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
# uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
# with:
|
||||
# image: us-docker.pkg.dev/protobuf-build/containers/test/linux/java:8-1fdbb997433cb22c1e49ef75ad374a8d6bb88702
|
||||
# credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -99,11 +99,11 @@ jobs:
|
|||
runs-on: ubuntu-22-4core
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Generate maven artifacts with bazel and install using maven
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/java:9.2.0-11-5bb1a8fdfc30f8c21c1b38cf053d2db9fca865a7
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
|
|||
14
.github/workflows/test_objectivec.yml
vendored
14
.github/workflows/test_objectivec.yml
vendored
|
|
@ -50,20 +50,20 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Setup ccache
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/ccache@v5
|
||||
uses: protocolbuffers/protobuf-ci/ccache@v6
|
||||
with:
|
||||
cache-prefix: objectivec_${{ matrix.platform }}_${{ matrix.xc_config }}
|
||||
support-modules: true
|
||||
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bash@v5
|
||||
uses: protocolbuffers/protobuf-ci/bash@v6
|
||||
env:
|
||||
CC: ${{ github.workspace }}/ci/clang_wrapper
|
||||
CXX: ${{ github.workspace }}/ci/clang_wrapper++
|
||||
|
|
@ -103,7 +103,7 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Xcode version
|
||||
|
|
@ -111,7 +111,7 @@ jobs:
|
|||
run: sudo xcode-select -switch /Applications/Xcode_${{ matrix.XCODE }}.app
|
||||
- name: Pod lib lint
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v6
|
||||
with:
|
||||
version: 9.2.0 # Bazel version
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -154,12 +154,12 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: bazel ${{ matrix.config.bazel_action }}
|
||||
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v6
|
||||
with:
|
||||
version: 9.2.0 # Bazel version
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
|
|||
24
.github/workflows/test_php.yml
vendored
24
.github/workflows/test_php.yml
vendored
|
|
@ -58,12 +58,12 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/php:9.2.0-${{ matrix.version }}-5bb1a8fdfc30f8c21c1b38cf053d2db9fca865a7
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -106,14 +106,14 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Cross compile protoc for i386
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
id: cross-compile
|
||||
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v5
|
||||
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:9.2.0-4d8e80ef93b0219fb907af9dd4596b92946995d8
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -121,7 +121,7 @@ jobs:
|
|||
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
with:
|
||||
image: ${{ env.image }}
|
||||
platform: linux/386
|
||||
|
|
@ -139,20 +139,20 @@ jobs:
|
|||
runs-on: ubuntu-22-4core
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Cross compile protoc for aarch64
|
||||
id: cross-compile
|
||||
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v5
|
||||
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:9.2.0-4d8e80ef93b0219fb907af9dd4596b92946995d8
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
architecture: linux-aarch64
|
||||
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/php-aarch64@sha256:77ff9fdec867bbfb290ee0b10d8b7a3e5e434155daa5ec93de7341c7592b858d
|
||||
platform: linux/arm64
|
||||
|
|
@ -178,7 +178,7 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
|
|
@ -194,14 +194,14 @@ jobs:
|
|||
|
||||
- name: Setup composer
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/composer-setup@v5
|
||||
uses: protocolbuffers/protobuf-ci/composer-setup@v6
|
||||
with:
|
||||
cache-prefix: php-${{ matrix.version }}
|
||||
directory: php
|
||||
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bash@v5
|
||||
uses: protocolbuffers/protobuf-ci/bash@v6
|
||||
with:
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
bazel-version: 9.2.0
|
||||
|
|
@ -217,7 +217,7 @@ jobs:
|
|||
|
||||
- name: Run conformance tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v6
|
||||
with:
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
version: 9.2.0 # Bazel version
|
||||
|
|
|
|||
6
.github/workflows/test_php_ext.yml
vendored
6
.github/workflows/test_php_ext.yml
vendored
|
|
@ -28,12 +28,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Package extension
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v6
|
||||
with:
|
||||
version: 9.2.0 # Bazel version
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -67,7 +67,7 @@ jobs:
|
|||
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/php-extension:${{ matrix.version }}-f1c24ed6acfbf6ec709b0de2f702209c9d3ac659
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
|
|||
8
.github/workflows/test_python.yml
vendored
8
.github/workflows/test_python.yml
vendored
|
|
@ -57,12 +57,12 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: ${{ matrix.image || format('us-docker.pkg.dev/protobuf-build/containers/test/linux/python:9.2.0-{0}-5bb1a8fdfc30f8c21c1b38cf053d2db9fca865a7 ', matrix.version) }}
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -91,7 +91,7 @@ jobs:
|
|||
runs-on: macos-14
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
|
|
@ -111,7 +111,7 @@ jobs:
|
|||
source venv/bin/activate
|
||||
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v6
|
||||
env:
|
||||
KOKORO_PYTHON_VERSION: ${{ matrix.version }}
|
||||
with:
|
||||
|
|
|
|||
24
.github/workflows/test_ruby.yml
vendored
24
.github/workflows/test_ruby.yml
vendored
|
|
@ -48,12 +48,12 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: ${{ matrix.image || format('us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:9.2.0-{0}-5bb1a8fdfc30f8c21c1b38cf053d2db9fca865a7 ', matrix.ruby) }}
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -73,20 +73,20 @@ jobs:
|
|||
runs-on: ubuntu-22-4core
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Cross compile protoc for i386
|
||||
id: cross-compile
|
||||
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v5
|
||||
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:8.7.0-4d8e80ef93b0219fb907af9dd4596b92946995d8
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
architecture: linux-i386
|
||||
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
with:
|
||||
image: i386/ruby:3.2.11-bookworm
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -105,14 +105,14 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
- name: Cross compile protoc for aarch64
|
||||
if: ${{ inputs.continuous-run }}
|
||||
id: cross-compile
|
||||
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v5
|
||||
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:8.7.0-4d8e80ef93b0219fb907af9dd4596b92946995d8
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -120,7 +120,7 @@ jobs:
|
|||
|
||||
- name: Run tests
|
||||
if: ${{ inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/docker@v6
|
||||
with:
|
||||
image: ruby:3.2.11-bookworm
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -155,7 +155,7 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
|
||||
|
|
@ -171,7 +171,7 @@ jobs:
|
|||
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v6
|
||||
with:
|
||||
version: 9.2.0 # Bazel version
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -203,12 +203,12 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: ${{ matrix.image || format('us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:9.2.0-{0}-5bb1a8fdfc30f8c21c1b38cf053d2db9fca865a7 ', matrix.ruby) }}
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
|
|||
11
.github/workflows/test_rust.yml
vendored
11
.github/workflows/test_rust.yml
vendored
|
|
@ -39,11 +39,11 @@ jobs:
|
|||
runs-on: ubuntu-22-4core
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: ${{ matrix.image }}
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -59,16 +59,19 @@ jobs:
|
|||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Windows startup flags
|
||||
shell: bash
|
||||
run: echo "startup --output_user_root=C:/ --windows_enable_symlinks" >> .bazelrc
|
||||
- name: Install Rust
|
||||
shell: bash
|
||||
# We need Rust 1.90 so that we can use the new workspace publishing
|
||||
# feature.
|
||||
run: rustup default 1.90
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v6
|
||||
with:
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
bazel: run //rust/release_crates:cargo_test
|
||||
|
|
|
|||
21
.github/workflows/test_upb.yml
vendored
21
.github/workflows/test_upb.yml
vendored
|
|
@ -44,12 +44,12 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Run tests
|
||||
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: ${{ matrix.config.image || 'us-docker.pkg.dev/protobuf-build/containers/test/linux/sanitize:8.7.0-5bb1a8fdfc30f8c21c1b38cf053d2db9fca865a7 ' }}
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -64,11 +64,14 @@ jobs:
|
|||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Windows startup flags
|
||||
shell: bash
|
||||
run: echo "startup --output_user_root=C:/ --windows_enable_symlinks" >> .bazelrc
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v6
|
||||
with:
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
bazel-cache: "upb-bazel-windows"
|
||||
|
|
@ -88,7 +91,7 @@ jobs:
|
|||
runs-on: macos-14
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Setup Python
|
||||
|
|
@ -98,7 +101,7 @@ jobs:
|
|||
cache: pip
|
||||
cache-dependency-path: 'python/requirements.txt'
|
||||
- name: Run tests
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel@v6
|
||||
with:
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
bazel-cache: "upb-bazel-macos"
|
||||
|
|
@ -111,11 +114,11 @@ jobs:
|
|||
if: ${{ github.event_name != 'pull_request_target' }}
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Build Wheels
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
||||
uses: protocolbuffers/protobuf-ci/bazel-docker@v6
|
||||
with:
|
||||
image: us-docker.pkg.dev/protobuf-build/release-containers/linux/apple:9.0.0-9fc33a0c378b5affd3c85d3f5ae4f330993048f7
|
||||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
||||
|
|
@ -290,7 +293,7 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout pending changes
|
||||
if: ${{ inputs.continuous-run }}
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Download Wheels
|
||||
|
|
|
|||
2
.github/workflows/test_yaml.yml
vendored
2
.github/workflows/test_yaml.yml
vendored
|
|
@ -17,7 +17,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v5
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.safe-checkout }}
|
||||
- name: Run python validation script
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
import common.bazelrc
|
||||
|
||||
build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
|
||||
build --cxxopt="-Woverloaded-virtual"
|
||||
build --copt="-Wpointer-arith"
|
||||
build --copt="-Werror" --copt="-Wno-sign-compare" --copt="-Wno-sign-conversion" --copt="-Wno-error=sign-conversion" --copt="-Wno-deprecated-declarations"
|
||||
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
import common.bazelrc
|
||||
|
||||
# Workaround for maximum path length issues
|
||||
build --cxxopt=/std:c++17 --host_cxxopt=/std:c++17
|
||||
startup --output_user_root=C:/tmp --windows_enable_symlinks
|
||||
common --enable_runfiles
|
||||
|
||||
build --extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows-clang-cl
|
||||
build:clang-cl --extra_execution_platforms=//build_defs:x64_windows-clang-cl --host_platform=//build_defs:x64_windows-clang-cl
|
||||
build:msvc-cl --extra_execution_platforms=//build_defs:x64_windows-msvc-cl --host_platform=//build_defs:x64_windows-msvc-cl
|
||||
build --config=clang-cl
|
||||
# Set BAZEL_SH, this is needed for bazel 8.6.0 WORKSPACE on windows
|
||||
build --action_env=BAZEL_SH="C:/Program Files/Git/bin/bash.exe"
|
||||
|
|
@ -1,84 +0,0 @@
|
|||
# TODO: ErrorProne's SelfAssertions are violated in tests
|
||||
build --javacopt=-Xep:SelfAssertion:WARN
|
||||
|
||||
build:dbg --compilation_mode=dbg
|
||||
|
||||
build:opt --compilation_mode=opt
|
||||
|
||||
build:san-common --config=dbg --strip=never --copt=-O1 --copt=-fno-omit-frame-pointer
|
||||
# TODO ASAN hits ODR violations with shared linkage due to
|
||||
# cc_proto_library cyclic dependency.
|
||||
build:san-common --dynamic_mode=off
|
||||
|
||||
build:asan --config=san-common --copt=-fsanitize=address --linkopt=-fsanitize=address
|
||||
|
||||
build:msan --config=san-common --copt=-fsanitize=memory --linkopt=-fsanitize=memory
|
||||
build:msan --copt=-fsanitize-memory-track-origins
|
||||
build:msan --copt=-fsanitize-memory-use-after-dtor
|
||||
build:msan --action_env=MSAN_OPTIONS=poison_in_dtor=1
|
||||
|
||||
# Use our instrumented LLVM libc++ in Kokoro.
|
||||
build:docker-msan --config=msan
|
||||
build:docker-msan --linkopt=-L/opt/libcxx_msan/lib --linkopt=-lc++abi
|
||||
build:docker-msan --linkopt=-Wl,-rpath,/opt/libcxx_msan/lib
|
||||
build:docker-msan --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++
|
||||
|
||||
|
||||
build:tsan --config=san-common --copt=-fsanitize=thread --linkopt=-fsanitize=thread
|
||||
|
||||
build:ubsan --config=san-common --copt=-fsanitize=undefined --linkopt=-fsanitize=undefined
|
||||
build:ubsan --action_env=UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1
|
||||
# Workaround for the fact that Bazel links with $CC, not $CXX
|
||||
# https://github.com/bazelbuild/bazel/issues/11122#issuecomment-613746748
|
||||
build:ubsan --copt=-fno-sanitize=function --copt=-fno-sanitize=vptr
|
||||
# Abseil passes nullptr to memcmp with 0 size
|
||||
build:ubsan --copt=-fno-sanitize=nonnull-attribute
|
||||
|
||||
# Build with all --incompatible flags that we can. This helps us prepare for
|
||||
# upcoming breaking changes in Bazel. This list was generated for Bazel 6 by
|
||||
# running bazelisk with the --migrate flag and filtering out all flags that
|
||||
# default to true or are deprecated.
|
||||
build --incompatible_check_sharding_support
|
||||
build --incompatible_config_setting_private_default_visibility
|
||||
build --incompatible_default_to_explicit_init_py
|
||||
build --incompatible_disable_native_android_rules
|
||||
build --incompatible_disable_starlark_host_transitions
|
||||
build --incompatible_disable_target_provider_fields
|
||||
build --incompatible_disallow_empty_glob
|
||||
build --incompatible_dont_use_javasourceinfoprovider
|
||||
build --incompatible_enable_android_toolchain_resolution
|
||||
build --incompatible_enable_apple_toolchain_resolution
|
||||
build --incompatible_exclusive_test_sandboxed
|
||||
build --incompatible_top_level_aspects_require_providers
|
||||
build --incompatible_use_cc_configure_from_rules_cc
|
||||
# Disable prebuilt protoc which doesn't work for tests at HEAD which do not
|
||||
# have a published protoc prebuilt release
|
||||
build --@com_google_protobuf//bazel/toolchains:prefer_prebuilt_protoc=false
|
||||
try-import-if-bazel-version >=9.0.0 %workspace%/ci/bazel9.bazelrc
|
||||
|
||||
# We cannot yet build successfully with the following flags:
|
||||
# --incompatible_check_testonly_for_output_files
|
||||
# --incompatible_disallow_struct_provider_syntax
|
||||
# --incompatible_no_implicit_file_export
|
||||
# --incompatible_no_rule_outputs_param
|
||||
# --incompatible_stop_exporting_language_modules
|
||||
# --incompatible_strict_action_env
|
||||
# --incompatible_visibility_private_attributes_at_definition
|
||||
|
||||
# We might be compatible with these flags, but they are not available in all
|
||||
# Bazel versions we are currently using:
|
||||
# --incompatible_disable_objc_library_transition
|
||||
# --incompatible_fail_on_unknown_attributes
|
||||
# --incompatible_merge_fixed_and_default_shell_env
|
||||
# --incompatible_remote_use_new_exit_code_for_lost_inputs
|
||||
# --incompatible_sandbox_hermetic_tmp
|
||||
|
||||
# For easier debugging of build failures.
|
||||
common --announce_rc
|
||||
build --verbose_failures
|
||||
|
||||
# Important: this flag ensures that we remain compliant with the C++ layering
|
||||
# check.
|
||||
build --features=layering_check
|
||||
|
||||
build --enable_platform_specific_config
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
import common.bazelrc
|
||||
|
||||
build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
|
||||
build --cxxopt="-Woverloaded-virtual"
|
||||
build --copt="-Wpointer-arith"
|
||||
build --copt="-Werror" --copt="-Wno-sign-compare" --copt="-Wno-sign-conversion" --copt="-Wno-error=sign-conversion" --copt="-Wno-deprecated-declarations"
|
||||
common --xcode_version_config=@com_google_protobuf//.github:host_xcodes
|
||||
|
||||
build --apple_crosstool_top=@local_config_apple_cc//:toolchain
|
||||
build --crosstool_top=@local_config_apple_cc//:toolchain
|
||||
build --host_crosstool_top=@local_config_apple_cc//:toolchain
|
||||
|
|
@ -14,4 +14,4 @@ build --remote_download_outputs=all
|
|||
|
||||
# Import Bazel 9 specific flags (such as --repo_contents_cache)
|
||||
# TODO: Remove it when --repo_contents_cache issue has been resolved in bazel
|
||||
try-import-if-bazel-version >=9.0.0 %workspace%/../ci/bazel9.bazelrc
|
||||
try-import-if-bazel-version >=9.0.0 %workspace%/../bazel9.bazelrc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue