React Native iOS construct runs for six hours in Github Actions

0
0


Presently we have now arrange Github Actions for React Native Android builds. This takes about 8 minutes to construct an APK and launch it.

Once we attempt to setup the iOS workflow it takes 6 hours earlier than it get’s cancelled. Alone M1 Mac it takes about quarter-hour.

It look’s just like the construct is caught on: Operating script ‘[CP] Embed Pods Frameworks’.

Our YML file:

identify: Construct iOS App
on: 
 workflow_dispatch:
  
jobs:
  buildiOSApp:
    identify: Construct iOS App
    runs-on: macos-latest
    steps:
      - identify: Checkout  
        makes use of: actions/checkout@v2 
        with:
          fetch-depth: 0
        
      - identify: Get yarn cache listing path
        id: yarn-cache-dir-path
        run: echo "::set-output identify=dir::$(yarn cache dir)"
      - identify: Restore node_modules from cache
        makes use of: actions/cache@v2
        id: yarn-cache
        with:
          path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
          restore-keys: |
            ${{ runner.os }}-yarn-
      - identify: Set up dependencies # set up venture deps with --frozen-lockfile to verify we can have the identical packages model ( very really helpful  on operating yarn set up on ci)
        run: yarn set up --frozen-lockfile
        
      - identify: Setup Ruby (bundle)
        makes use of: ruby/setup-ruby@v1
        with:
          ruby-version: 2.7.5
          bundler-cache: true
          
      - identify: Restore Pods cache
        makes use of: actions/cache@v2
        with:
          path: |
            ios/Pods
            ~/Library/Caches/CocoaPods
            ~/.cocoapods
          key: ${{ runner.os }}-pods-${{ hashFiles('ios/Podfile.lock') }}
          restore-keys: |
            ${{ runner.os }}-pods-
            
      - identify: Set up Pods
        run: cd ios && pod set up --repo-update && cd ..
        
        
      - identify: Construct iOS App
        makes use of: yukiarrr/ios-build-action@v1.4.0
        with:
          project-path: ios/App.xcodeproj
          p12-base64: ${{ secrets and techniques.IOS_P12_BASE64 }}
          mobileprovision-base64: ${{ secrets and techniques.IOS_MOBILE_PROVISION_BASE64 }}
          code-signing-identity: 'iPhone Distribution'
          team-id: ${{ secrets and techniques.IOS_TEAM_ID }}
          certificate-password: ${{ secrets and techniques.IOS_CERTIFICATE_PASSWORD }}
          workspace-path: ios/App.xcworkspace
          scheme: App

The GitHub Motion Workflow run:

Github Workflow Run

I’ve learn some issues about Keychain entry that’s denied or Fastlane enhancements, however I am undecided how that’s associated to a Github Workflow (we do not have a Fastfile or one thing).

LEAVE A REPLY

Please enter your comment!
Please enter your name here