diff --git a/.github/workflows/build-example.yml b/.github/workflows/build-example.yml index 4cc831a..4036460 100644 --- a/.github/workflows/build-example.yml +++ b/.github/workflows/build-example.yml @@ -16,15 +16,12 @@ env: WATCHSCHEME: Example jobs: - example: - name: Run examples + build-iOS-example: + name: Build iOS examples runs-on: macOS-latest strategy: matrix: iosDestination: ['platform=iOS Simulator,OS=15.0,name=iPhone 8','platform=iOS Simulator,OS=15.5,name=iPhone X','platform=iOS Simulator,OS=16.0,name=iPhone 14'] - macOSDestination: ["platform=macOS,arch=x86_64"] - tvOSDestination: ["platform=tvOS Simulator,name=Apple TV 4K"] - watchOSdestination: ['platform=watchOS Simulator,name=Apple Watch Series 5 - 44mm'] steps: - name: Checkout @@ -35,21 +32,55 @@ jobs: xcodebuild clean build -project "${{ env.PROJECT_DIR }}/${{ env.PROJECT_NAME }}" -scheme "${{ env.iOSSCHEME }}" | xcpretty env: destination: ${{ matrix.iosDestination }} + + build-macOS-example: + name: Build macOS examples + runs-on: macOS-latest + strategy: + matrix: + macOSDestination: ["platform=macOS,arch=x86_64"] + + steps: + - name: Checkout + uses: actions/checkout@v2 - name: Build macOS run: | xcodebuild clean build -project "${{ env.PROJECT_DIR }}/${{ env.PROJECT_NAME }}" -scheme "${{ env.OSXSCHEME }}" | xcpretty env: destination: ${{ matrix.macOSDestination }} + + build-tvOS-example: + name: Build tvOS examples + runs-on: macOS-latest + strategy: + matrix: + tvOSDestination: ["platform=tvOS Simulator,name=Apple TV 4K"] + + steps: + - name: Checkout + uses: actions/checkout@v2 - name: Build tvOS run: | xcodebuild clean build -project "${{ env.PROJECT_DIR }}/${{ env.PROJECT_NAME }}" -scheme "${{ env.TVSCHEME }}" | xcpretty env: destination: ${{ matrix.tvOSDestination }} + + build-watchOS-example: + name: Build watchOS examples + runs-on: macOS-latest + strategy: + matrix: + watchOSdestination: ['platform=watchOS Simulator,name=Apple Watch Series 5 - 44mm'] + + steps: + - name: Checkout + uses: actions/checkout@v2 - name: Build watchOS run: | xcodebuild clean build -project "${{ env.PROJECT_DIR }}/${{ env.PROJECT_NAME }}" -scheme "${{ env.WATCHSCHEME }}" | xcpretty env: destination: ${{ matrix.watchOSdestination }} +