IOS CI workflow #7
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
| # This workflow builds and tests the iOS app with CocoaPods and Xcode | |
| # For more information see: https://docs.github.com/actions/guides/building-and-testing-swift | |
| name: IOS CI with cocoapods | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths: | |
| - 'ios/OpenBot/**' | |
| - '.github/workflows/cocoapod.yml' | |
| pull_request: | |
| branches: [ master ] | |
| paths: | |
| - 'ios/OpenBot/**' | |
| - '.github/workflows/cocoapod.yml' | |
| jobs: | |
| build: | |
| runs-on: macos-14 | |
| defaults: | |
| run: | |
| working-directory: ios/OpenBot | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Xcode | |
| run: sudo xcode-select -switch /Applications/Xcode_15.4.app/Contents/Developer | |
| - name: Install CocoaPods | |
| run: sudo gem install cocoapods | |
| - name: Install Dependencies | |
| run: pod install --repo-update | |
| - name: Build | |
| run: | | |
| xcodebuild \ | |
| -workspace OpenBot.xcworkspace \ | |
| -scheme OpenBot \ | |
| -sdk iphonesimulator \ | |
| -destination 'generic/platform=iOS Simulator' \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| IPHONEOS_DEPLOYMENT_TARGET=14.0 \ | |
| clean build | |
| - name: Test | |
| run: | | |
| xcodebuild \ | |
| -workspace OpenBot.xcworkspace \ | |
| -scheme OpenBot \ | |
| -sdk iphonesimulator \ | |
| -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.5' \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| IPHONEOS_DEPLOYMENT_TARGET=14.0 \ | |
| test |