Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
serajahmad01 authored Dec 16, 2024
1 parent bdc6092 commit 2e64f49
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,18 @@ jobs:
id: iOSVersion
if: github.event_name != 'workflow_dispatch'
run: |
declare -A versionMapping
versionMapping=(
["24.12"]="17.0"
["24.8"]="16.0"
["24.4"]="16.0"
["10.0"]="16.0"
)
frameworkVersion=${{ env.determinedFrameworkVersion }}
majorMinorVersion=$(echo $frameworkVersion | cut -d '.' -f 1-2)
if [ -n "${versionMapping[$majorMinor]}" ]; then
iOSVersion="${versionMapping[$majorMinor]}"
else
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
# iOSVersion=$(if [[ ${{env.determinedFrameworkVersion}} = 9* ]]; then echo '15.0'; else echo '16.0'; fi)
# echo "$iOSVersion"
echo "Framework version: $frameworkVersion -> iOS version: $iOSVersion"
echo "iOSVersion=$iOSVersion" >> $GITHUB_ENV
echo "iOSVersion=$iOSVersion" >> $GITHUB_ENV - name: Create Podfile with latest podspecs
- name: Create Podfile with latest podspecs
if: github.event_name != 'workflow_dispatch'
run: |
Expand Down

0 comments on commit 2e64f49

Please sign in to comment.