Add GHA test for full_mac_build.sh and ensure it passes

#test-continuous

PiperOrigin-RevId: 727027119
test_727027119
Deanna Garcia 1 week ago committed by Copybara-Service
parent 8b2115fe4a
commit 29866b93f1
  1. 18
      .github/workflows/test_objectivec.yml
  2. 2
      objectivec/DevTools/full_mac_build.sh

@ -163,3 +163,21 @@ jobs:
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
bazel: ${{ matrix.config.bazel_action }} ${{ matrix.config.flags }} ${{ matrix.bazel_targets }}
bazel-cache: objc_${{ matrix.platform }}_${{ matrix.config.name }}
# Only run on continuous runs as execution takes ~ 40 minutes.
full-mac-build:
strategy:
fail-fast: false # Don't cancel all jobs if one fails.
name: ${{ inputs.continuous-prefix }} Full Mac Build
runs-on: macos-13
steps:
- name: Checkout pending changes
if: ${{ inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/checkout@v4
with:
ref: ${{ inputs.safe-checkout }}
- name: Run full mac build
if: ${{ inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/bash@v4
with:
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
command: ./objectivec/DevTools/full_mac_build.sh

@ -7,7 +7,7 @@ set -eu
# Some base locations.
readonly ScriptDir=$(dirname "$(echo $0 | sed -e "s,^\([^/]\),$(pwd)/\1,")")
readonly ProtoRootDir="${ScriptDir}/../.."
readonly BazelFlags="${BAZEL_FLAGS:---announce_rc --macos_minimum_os=11.0}"
readonly BazelFlags="${BAZEL_FLAGS:---announce_rc --macos_minimum_os=11.0 --noenable_bzlmod --enable_workspace}"
# Invoke with BAZEL=bazelisk to use that instead.
readonly BazelBin="${BAZEL:-bazel}"

Loading…
Cancel
Save