mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Update the GitHub Actions CI tests to use the latest versions of the images, which include versions 8.7.0 and 9.2.0 of bazel and a few language specific updates. #test-continuous Note: The Continuous Linux TSAN test failure is pre-existing and currently broken at HEAD PiperOrigin-RevId: 959198290
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
name: hpb tests
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
safe-checkout:
|
|
required: true
|
|
description: "The SHA key for the commit we want to run over"
|
|
type: string
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
# hpb tests are always run on presubmit
|
|
linux:
|
|
strategy:
|
|
fail-fast: false # Don't cancel all jobs if one fails.
|
|
matrix:
|
|
config:
|
|
- { name: Optimized, flags: --config=opt }
|
|
|
|
include:
|
|
- targets: "//hpb/... //hpb_generator/..."
|
|
- image: "us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:9.2.0-4d8e80ef93b0219fb907af9dd4596b92946995d8"
|
|
- bazel_cmd: "test"
|
|
|
|
name: Linux ${{ matrix.config.name }}
|
|
runs-on: ubuntu-22-4core
|
|
steps:
|
|
- name: Checkout pending changes
|
|
uses: protocolbuffers/protobuf-ci/checkout@v5
|
|
with:
|
|
ref: ${{ inputs.safe-checkout }}
|
|
- name: Run tests
|
|
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
|
|
with:
|
|
image: ${{ matrix.image }}
|
|
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
|
|
bazel-cache: hpb_linux
|
|
bazel: >-
|
|
${{ matrix.bazel_cmd }}
|
|
${{ matrix.targets }} ${{ matrix.config.flags }}
|