From de8bb714e252a6bc91e2b056260f9ccc495d4b4a Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Mon, 13 Feb 2023 10:07:13 -0800 Subject: [PATCH] [ObjC] CI dbg & opt macOS bazel builds. PiperOrigin-RevId: 509260795 --- .github/workflows/test_objectivec.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test_objectivec.yml b/.github/workflows/test_objectivec.yml index 465e02259231..4093b180b724 100644 --- a/.github/workflows/test_objectivec.yml +++ b/.github/workflows/test_objectivec.yml @@ -91,11 +91,15 @@ jobs: strategy: fail-fast: false # Don't cancel all jobs if one fails. matrix: + config: + - { name: Optimized, flags: --config=opt } + - { name: Debug, flags: --config=dbg } + # TODO: Could add iOS to atleast build the objc_library targets for that. + platform: ["macOS"] include: - # TODO: Could add iOS to atleast build the objc_library targets for that. - - name: macOS - bazel: //objectivec/... - name: Bazel ${{ matrix.name }} + - platform: "macOS" + bazel_targets: //objectivec/... + name: Bazel ${{ matrix.platform }} ${{ matrix.config.name }} runs-on: macos-12 steps: - name: Checkout pending changes @@ -106,5 +110,5 @@ jobs: uses: ./.github/actions/bazel with: credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }} - bazel: test ${{ matrix.bazel }} - bazel-cache: objc_${{ matrix.name }} + bazel: test ${{ matrix.config.flags }} ${{ matrix.bazel_targets }} + bazel-cache: objc_${{ matrix.platform }}_${{ matrix.config.name }}