Make Android Build Times 2x faster (#449)

* Cache Speed

---------

Co-authored-by: Violet Caulfield <42452695+anultravioletaurora@users.noreply.github.com>
This commit is contained in:
Ritesh Shukla
2025-07-20 19:11:20 +05:30
committed by GitHub
parent 9e41cced40
commit 5c1e7da145
5 changed files with 87 additions and 10 deletions
+18 -3
View File
@@ -13,6 +13,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- name: 💎 Set up Ruby
uses: ruby/setup-ruby@v1
@@ -23,12 +24,26 @@ jobs:
- name: 💬 Echo package.json version to Github ENV
run: echo VERSION_NUMBER=$(node -p -e "require('./package.json').version") >> $GITHUB_ENV
- uses: actions/cache@v3
with:
path: |
node_modules
~/.gradle/caches
~/.gradle/wrapper
~/.cache/turbo
android/.gradle
android/app/build
key: ${{ runner.os }}-gradle-turbo-${{ hashFiles('**/yarn.lock', '**/build.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-turbo-
- name: 🤖 Run yarn init-android
run: yarn install --network-concurrency 1
- name: 🚀 Run fastlane build
run: yarn fastlane:android:build
- name: 🚀 Run turbo build
run: yarn android-build
- name: 📦 Upload APK for testing
uses: actions/upload-artifact@v4
+15 -1
View File
@@ -18,12 +18,26 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- name: 💎 Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- uses: actions/cache@v3
with:
path: |
node_modules
~/.gradle/caches
~/.gradle/wrapper
~/.cache/turbo
android/.gradle
android/app/build
key: ${{ runner.os }}-gradle-turbo-${{ hashFiles('**/yarn.lock', '**/build.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-turbo-
- name: 🍎 Run yarn init-android
run: yarn install --network-concurrency 1
@@ -52,7 +66,7 @@ jobs:
node -e "JSON.parse(require('fs').readFileSync('glitchtip.json'))"
- name: 🚀 Run Android fastlane build
run: yarn fastlane:android:build
run: yarn android-build
- name: 📤 Upload Android Artifacts
uses: actions/upload-artifact@v4