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). Reviewed By: cipolleschi Differential Revision: D46470738 fbshipit-source-id: f66f6c6efc1b7cf1443fbca0815a24801c16a626
56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
name: Apple
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
lint-pods:
|
|
name: Lint pod
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup-apple
|
|
|
|
- name: pod lib lint
|
|
run: pod lib lint --verbose --include-podspecs=**/*.podspec
|
|
|
|
build-sample:
|
|
name: Build sample [${{ matrix.mode }}]
|
|
runs-on: macos-latest
|
|
strategy:
|
|
matrix:
|
|
mode: [Debug, Release]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup-apple
|
|
|
|
- name: pod install
|
|
run: pod install
|
|
working-directory: ./YogaKit/YogaKitSample
|
|
|
|
- name: xcodebuild YogaKitSample.xcworkspace
|
|
run: xcodebuild -workspace YogaKitSample.xcworkspace -scheme YogaKitSample
|
|
working-directory: ./YogaKit/YogaKitSample
|
|
|
|
clang-format:
|
|
name: Format
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: clang-format
|
|
uses: ./.github/actions/clang-format
|
|
with:
|
|
directory: ./YogaKit
|