Fix ci #10
Workflow file for this run
This file contains 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 Example | |
on: | |
push: | |
branches: [ main, develop ] | |
pull_request: | |
branches: [ main ] | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer | |
PROJECT_DIR: Example | |
PROJECT_NAME: Example.xcodeproj | |
iOSSCHEME: Example | |
jobs: | |
example: | |
name: Run examples | |
runs-on: macOS-13 | |
strategy: | |
matrix: | |
iosDestination: ['platform=iOS Simulator,OS=16,name=iPhone X','platform=iOS Simulator,OS=17.0,name=iPhone 14'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Trust the GitHub SSH keys | |
run: | | |
for ip in $(dig @8.8.8.8 github.com +short); do ssh-keyscan github.com,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts | |
- name: Build iOS | |
run: | | |
xcodebuild clean build -project "${{ env.PROJECT_DIR }}/${{ env.PROJECT_NAME }}" -scheme "${{ env.iOSSCHEME }}" | xcpretty | |
env: | |
destination: ${{ matrix.iosDestination }} |