Skip to content

Commit

Permalink
Update build-ios.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
loay-ashraf committed Aug 24, 2023
1 parent 5ee2fb4 commit 145af89
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
destination: ['platform=iOS Simulator,OS=14.0,name=iPhone 12 Pro Max', ]
platform: ['iOS Simulator']
OS: [14.0, 15.0, 16.0]
# destination: ['platform=iOS Simulator,OS=15.0,name=iPhone 13 Pro Max']
# destination: ['platform=iOS Simulator,OS=16.0,name=iPhone 14 Pro Max']
# destination: ['platform=macOS,name=My Mac']
destination: ['platform=iOS Simulator,arch=x86_64',
'platform=iOS Simulator,arch=arm64',
'platform=macOS,arch=x86_64',
'platform=macOS,arch=arm64']

steps:
- name: Checkout
Expand All @@ -33,10 +31,9 @@ jobs:
- name: Build
env:
scheme: ${{ 'default' }}
platform: ${{ matrix.platform }}
OS: ${{ matrix.OS }}
destination: ${{ matrix.destination }}
run: |
if [ $scheme = default ]; then scheme=$(cat default); fi
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
xcodebuild clean build analyze -scheme "$scheme" -"$filetype_parameter" "$file_to_build" | xcpretty && exit ${PIPESTATUS[0]}
xcodebuild clean build analyze -scheme "$scheme" -destination "${destination}" -"$filetype_parameter" "$file_to_build" | xcpretty && exit ${PIPESTATUS[0]}

0 comments on commit 145af89

Please sign in to comment.