From 7d11ce09c7e66f07b5ce901b3ef2faae099e01b0 Mon Sep 17 00:00:00 2001 From: Tim Stirrat Date: Thu, 9 Apr 2020 13:43:10 -0700 Subject: [PATCH 1/3] Increase file watchers in Android build --- .github/workflows/build-android.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index 9cc3e72fd1..38c5ecc650 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -30,6 +30,9 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- + - name: Increase watchers for release versions. + run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p + - name: Bundle JS run: npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ --verbose From 5b9dd872bf1d5eb2a69ecb70d691bca109fded34 Mon Sep 17 00:00:00 2001 From: Tim Stirrat Date: Thu, 9 Apr 2020 13:43:59 -0700 Subject: [PATCH 2/3] Streamline iOS pod install --- .github/workflows/build-ios.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index b430f20778..c323b60e5b 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -28,10 +28,6 @@ jobs: - name: Install CocoaPods run: gem install cocoapods - - name: Update Pods - run: pod repo update - working-directory: ./ios - - name: Cache CocoaPods uses: actions/cache@v1 with: @@ -41,7 +37,7 @@ jobs: ${{ runner.OS }}-pods- - name: Pod Install - run: pod install + run: pod install --repo-update working-directory: ./ios - name: Bundle iOS JS From 1642d52edeac9515ff99599582715c4d2631a801 Mon Sep 17 00:00:00 2001 From: Tim Stirrat Date: Thu, 9 Apr 2020 13:51:15 -0700 Subject: [PATCH 3/3] naming tweaks --- .github/workflows/build-android.yml | 2 +- .github/workflows/build-ios.yml | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index 38c5ecc650..2633c774f1 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -30,7 +30,7 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - - name: Increase watchers for release versions. + - name: Increase max file watchers run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p - name: Bundle JS diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index c323b60e5b..6c06718f1d 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -25,8 +25,7 @@ jobs: - run: yarn --frozen-lockfile - - name: Install CocoaPods - run: gem install cocoapods + - run: gem install cocoapods - name: Cache CocoaPods uses: actions/cache@v1 @@ -36,8 +35,7 @@ jobs: restore-keys: | ${{ runner.OS }}-pods- - - name: Pod Install - run: pod install --repo-update + - run: pod install --repo-update working-directory: ./ios - name: Bundle iOS JS