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