name: Build

on: [push, pull_request]

jobs:
  build:
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v2

      - name: Validate Pod
        run: pod lib lint

      - name: Carthage Build
        run: ./carthage.sh build --no-skip-current

name: Build

on: [push, pull_request]

jobs:
  build:
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v2

      - name: Validate Pod
        run: pod lib lint

      - name: Carthage Build
        run: ./carthage.sh build --no-skip-current

      - name: Build iOS Example - iOS Simulator
        run: |
          xcodebuild clean build -scheme "iOS Example" \
            -sdk iphonesimulator \
            -configuration Release CODE_SIGN_IDENTITY=- | xcpretty -c

      - name: Build iOS Example - Mac Catalyst
        run: |
          xcodebuild clean build -scheme "iOS Example" \
            -destination "platform=macOS,arch=x86_64,variant=Mac Catalyst" \
            -configuration Release CODE_SIGN_IDENTITY=- | xcpretty -c

Add steps: Build iOS Example
Add steps:  Build iOS Example
