[ObjC] Only build protoc by default.
Swap the --core-only for --full-build so one has to opt into the larger build.
PiperOrigin-RevId: 507826347
diff --git a/.github/workflows/test_objectivec.yml b/.github/workflows/test_objectivec.yml
index 68877c8..01e28ea 100644
--- a/.github/workflows/test_objectivec.yml
+++ b/.github/workflows/test_objectivec.yml
@@ -16,13 +16,13 @@
include:
- name: OS X
config: osx
- flags: --core-only --skip-xcode-ios --skip-xcode-tvos
+ flags: --skip-xcode-ios --skip-xcode-tvos
- name: iOS Debug
config: ios_debug
- flags: --core-only --skip-xcode-osx --skip-xcode-tvos --skip-objc-conformance --skip-xcode-release
+ flags: --skip-xcode-osx --skip-xcode-tvos --skip-objc-conformance --skip-xcode-release
- name: iOS Release
config: ios_release
- flags: --core-only --skip-xcode-osx --skip-xcode-tvos --skip-objc-conformance --skip-xcode-debug
+ flags: --skip-xcode-osx --skip-xcode-tvos --skip-objc-conformance --skip-xcode-debug
name: ${{ matrix.name}}
runs-on: macos-12
diff --git a/objectivec/DevTools/full_mac_build.sh b/objectivec/DevTools/full_mac_build.sh
index 0c1310e..89c80f7 100755
--- a/objectivec/DevTools/full_mac_build.sh
+++ b/objectivec/DevTools/full_mac_build.sh
@@ -32,8 +32,9 @@
-r, --regenerate-descriptors
Run generate_descriptor_proto.sh to regenerate all the checked in
proto sources.
- --core-only
- Skip some of the core protobuf build/checks to shorten the build time.
+ --full-build
+ By default only protoc is built within protobuf, this option will
+ enable a full build/test of the entire protobuf project.
--skip-xcode
Skip the invoke of Xcode to test the runtime on both iOS and OS X.
--skip-xcode-ios
@@ -63,7 +64,7 @@
DO_CLEAN=no
REGEN_DESCRIPTORS=no
-CORE_ONLY=no
+FULL_BUILD=no
DO_XCODE_IOS_TESTS=yes
DO_XCODE_OSX_TESTS=yes
DO_XCODE_TVOS_TESTS=yes
@@ -83,8 +84,8 @@
-r | --regenerate-descriptors )
REGEN_DESCRIPTORS=yes
;;
- --core-only )
- CORE_ONLY=yes
+ --full-build )
+ FULL_BUILD=yes
;;
--skip-xcode )
DO_XCODE_IOS_TESTS=no
@@ -178,14 +179,12 @@
./generate_descriptor_proto.sh
fi
-if [[ "${CORE_ONLY}" == "yes" ]] ; then
- header "Building core Only"
- time ${BazelBin} build //:protoc //:protobuf //:protobuf_lite $BazelFlags
+if [[ "${FULL_BUILD}" == "yes" ]] ; then
+ header "Build/Test: everything"
+ time ${BazelBin} test //:protoc //:protobuf //src/... $BazelFlags
else
- header "Building"
- # Can't issue these together, when fully parallel, something sometimes chokes
- # at random.
- time ${BazelBin} test //src/... $BazelFlags
+ header "Building: protoc"
+ time ${BazelBin} build //:protoc $BazelFlags
fi
# Ensure the WKT sources checked in are current.