Skip to content

Commit

Permalink
[ObjC] CI dbg & opt macOS bazel builds.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 509260795
  • Loading branch information
protobuf-github-bot authored and mkruskal-google committed Feb 14, 2023
1 parent a3970ef commit de8bb71
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/test_objectivec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit de8bb71

Please sign in to comment.