Adds a Swift Snippets sample app for IMA documentation code snippets. #191
Workflow file for this run
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Build Status | |
| # Step 1: Build on pull-requests or pushes to main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| # Step 2: Build the samples | |
| build: | |
| name: Build | |
| # SGAIClientSideExample requires Xcode 16 on macos-15 to build. | |
| runs-on: macos-15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| regex: | |
| - "Objective-C/AdvancedExample" | |
| - "Objective-C/BasicExample" | |
| - "Objective-C/PodServingExample" | |
| - "Objective-C/SampleVideoPlayer" | |
| - "Objective-C/Snippets" | |
| - "Objective-C/VideoStitcherExample" | |
| - "Swift/BasicExample" | |
| - "Swift/PodServingExample" | |
| - "Swift/SampleVideoPlayer" | |
| - "Swift/Snippets" | |
| - "Swift/VideoStitcherExample" | |
| - "Swift/SGAIClientSideExample" | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v1 | |
| - name: Xcode version | |
| run: /usr/bin/xcodebuild -version | |
| - name: Update CocoaPods specs repository | |
| run: pod repo update | |
| - name: Install xcpretty | |
| run: sudo gem install xcpretty | |
| - name: Set commit range (push to the main branch, for example, merge) | |
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
| run: echo "COMMIT_RANGE="${{ github.event.before }}.."" >> $GITHUB_ENV | |
| - name: Set commit range (pull request) | |
| if: github.event_name == 'pull_request' | |
| run: echo "COMMIT_RANGE="HEAD~.."" >> $GITHUB_ENV | |
| - name: Build | |
| run: .github/workflows/build/build.sh | |
| shell: bash | |
| env: | |
| COMMIT_RANGE: ${{ env.COMMIT_RANGE }} | |
| REGEX: ${{ matrix.regex }} |