Basic CocoaPods Validation (#1303)

Summary:
Pull Request resolved: https://github.com/facebook/yoga/pull/1303

This gets `pod lib lint` and building the sample app with xcbuild passing (using https://github.com/facebook/yoga/pull/1105 as a template).

Differential Revision: D46470738

fbshipit-source-id: f61eb44c533e1a5fd8c2df0807e2cfd80418406d
This commit is contained in:
Nick Gerleman
2023-06-05 22:18:39 -07:00
committed by Facebook GitHub Bot
parent 5e74e20a4d
commit 6bf28829f5
10 changed files with 110 additions and 98 deletions

View File

@@ -9,7 +9,7 @@ on:
jobs:
lint-pods:
name: Lint
name: Lint pod
runs-on: macos-latest
steps:
@@ -18,12 +18,11 @@ jobs:
- name: Setup
uses: ./.github/actions/setup-apple
- name: pod spec lint
run: pod spec lint --verbose
continue-on-error: true # Apple Build is Broken
- name: pod lib lint
run: pod lib lint --verbose --include-podspecs=**/*.podspec
build-sample:
name: Build [${{ matrix.mode }}]
name: Build sample [${{ matrix.mode }}]
runs-on: macos-latest
strategy:
matrix:
@@ -38,9 +37,10 @@ jobs:
- name: pod install
run: pod install
working-directory: ./YogaKit/YogaKitSample
continue-on-error: true # Apple Build is Broken
# TODO: xcodebuild
- name: xcodebuild YogaKitSample.xcworkspace
run: xcodebuild -workspace YogaKitSample.xcworkspace -scheme YogaKitSample
working-directory: ./YogaKit/YogaKitSample
clang-format:
name: Format