diff --git a/.github/workflows/objc_cocoapods.yml b/.github/workflows/objc_cocoapods.yml new file mode 100644 index 0000000000..dd330a880b --- /dev/null +++ b/.github/workflows/objc_cocoapods.yml @@ -0,0 +1,36 @@ +name: 'ObjC CocoaPods' + +on: + push: + paths: + - '.github/workflows/objc_cocoapods.yml' + - 'Protobuf.podspec' + - 'objectivec/**' + - '!objectivec/DevTools/**' + - '!objectivec/ProtocolBuffers_*.xcodeproj/**' + - '!objectivec/Tests/**' + pull_request: + paths: + - '.github/workflows/objc_cocoapods.yml' + - 'Protobuf.podspec' + - 'objectivec/**' + - '!objectivec/DevTools/**' + - '!objectivec/ProtocolBuffers_*.xcodeproj/**' + - '!objectivec/Tests/**' + +jobs: + pod-lib-lint: + runs-on: macos-latest + strategy: + fail-fast: false + matrix: + PLATFORM: ["ios", "macos", "tvos", "watchos"] + CONFIGURATION: ["Debug", "Release"] + steps: + - uses: actions/checkout@v2 + - name: Pod lib lint + run: | + pod lib lint --verbose \ + --configuration=${{ matrix.CONFIGURATION }} \ + --platforms=${{ matrix.PLATFORM }} \ + Protobuf.podspec diff --git a/Protobuf.podspec b/Protobuf.podspec index d3d540c250..3a5132d090 100644 --- a/Protobuf.podspec +++ b/Protobuf.podspec @@ -39,4 +39,12 @@ Pod::Spec.new do |s| s.tvos.deployment_target = '9.0' s.watchos.deployment_target = '2.0' s.requires_arc = false + + # The unittest need the generate sources from the testing related .proto + # files. So to add a `test_spec`, there would also need to be something like a + # `script_phases` to generate them, but there would also need to be a way to + # ensure `protoc` had be built. Another option would be to move to a model + # where the needed files are always generated and checked in. Neither of these + # seem that great at the moment, so the tests have *not* been wired into here + # at this time. end