Skip to content

Commit

Permalink
Merge pull request #127 from SAP-samples/serajahmad01-patch-1
Browse files Browse the repository at this point in the history
[update] updating CI yaml file
  • Loading branch information
serajahmad01 authored Dec 17, 2024
2 parents 223c111 + f0447a7 commit ef3b5b4
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,18 @@ jobs:
id: iOSVersion
if: github.event_name != 'workflow_dispatch'
run: |
iOSVersion=$(if [[ ${{env.determinedFrameworkVersion}} = 9* ]]; then echo '15.0'; else echo '16.0'; fi)
echo "$iOSVersion"
frameworkVersion=${{ env.determinedFrameworkVersion }}
majorMinorVersion=$(echo $frameworkVersion | cut -d '.' -f 1-2)
if [ "$majorMinorVersion" = "24.12" ]; then
iOSVersion="17.0"
elif [ "$majorMinorVersion" = "24.8" ] || [ "$majorMinorVersion" = "24.4" ] || [ "$majorMinorVersion" = "10.0" ]; then
iOSVersion="16.0"
else
iOSVersion="16.0" # Default fallback
fi
echo "Framework version: $frameworkVersion -> iOS version: $iOSVersion"
echo "iOSVersion=$iOSVersion" >> $GITHUB_ENV
- name: Create Podfile with latest podspecs
if: github.event_name != 'workflow_dispatch'
run: |
Expand Down Expand Up @@ -100,13 +109,17 @@ jobs:
cat Podfile
- name: "Displays Xcode current version"
run: sudo xcode-select -p
- name: Determine Xcode version needed
- name: Determine Xcode version based on iOS version
run: |
neededXcode='Xcode_15.4'
if [[ ${{ env.iOSVersion }} == '17.0' ]]; then
neededXcode='Xcode_16.1'
else
neededXcode='Xcode_15.4'
fi
echo "neededXcode=$neededXcode" >> $GITHUB_ENV
- name: "Set Xcode version 15.4"
if: env.neededXcode == 'Xcode_15.4'
run: sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer
- name: "Set Xcode version"
if: env.neededXcode != ''
run: sudo xcode-select -s /Applications/${{ env.neededXcode }}.app/Contents/Developer
- name: Create test application
run: |
cd .testing
Expand Down

0 comments on commit ef3b5b4

Please sign in to comment.