Skip to content

Commit db74123

Browse files
authored
Merge branch 'main' into TMCU-148-bug-view-full-history-on-link-doesnt-work-on-arbitrum-and-base
2 parents e32d420 + 91c23b3 commit db74123

File tree

246 files changed

+15620
-5660
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+15620
-5660
lines changed

.github/workflows/build-android-e2e.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
runs-on: ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-lg
3636
env:
3737
GRADLE_USER_HOME: /home/admin/_work/.gradle
38+
CACHE_GENERATION: v1 # Increment this to bust the cache (v1, v2, v3, etc.)
3839
outputs:
3940
apk-uploaded: ${{ steps.upload-apk.outcome == 'success' }}
4041
aab-uploaded: ${{ steps.upload-aab.outcome == 'success' }}
@@ -63,16 +64,14 @@ jobs:
6364

6465
- name: Cache Gradle dependencies
6566
uses: cirruslabs/cache@v4
67+
id: gradle-cache-restore
68+
env:
69+
GRADLE_CACHE_VERSION: 1
6670
with:
6771
path: |
68-
/home/runner/_work/.gradle/caches
69-
/home/runner/_work/.gradle/wrapper
70-
/home/admin/_work/.gradle/caches
71-
/home/admin/_work/.gradle/wrapper
72-
android/.gradle
73-
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
74-
restore-keys: |
75-
gradle-${{ runner.os }}-
72+
~/_work/.gradle/caches
73+
~/_work/.gradle/wrapper
74+
key: gradle-${{ env.GRADLE_CACHE_VERSION }}-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
7675

7776
- name: Setup project dependencies with retry
7877
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
@@ -115,24 +114,24 @@ jobs:
115114
fi
116115
117116
- name: Check and restore cached APKs if Fingerprint is found
118-
id: cache-restore
117+
id: apk-cache-restore
119118
uses: cirruslabs/cache@v4
120119
with:
121120
path: |
122121
${{ steps.determine-target-paths.outputs.apk-target-path }}/${{ steps.determine-target-paths.outputs.artifact_name }}.apk
123122
${{ steps.determine-target-paths.outputs.test-apk-target-path }}/${{ steps.determine-target-paths.outputs.artifact_name }}-androidTest.apk
124123
${{ steps.determine-target-paths.outputs.aab-target-path }}/${{ steps.determine-target-paths.outputs.artifact_name }}.aab
125-
key: android-apk-${{ inputs.build_type }}-${{ steps.generate-fingerprint.outputs.fingerprint }}
124+
key: android-apk-${{ inputs.build_type }}-${{ env.CACHE_GENERATION }}-${{ steps.generate-fingerprint.outputs.fingerprint }}
126125
restore-keys: |
127-
android-apk-${{ inputs.build_type }}-
126+
android-apk-${{ inputs.build_type }}-${{ env.CACHE_GENERATION }}-
128127
android-apk-
129128
130129
- name: Build Android E2E APKs
131-
if: ${{ steps.cache-restore.outputs.cache-hit != 'true' }}
130+
if: ${{ steps.apk-cache-restore.outputs.cache-hit != 'true' || steps.gradle-cache-restore.outputs.cache-hit != 'true' }}
132131
run: |
133132
echo "🏗 Building Android E2E APKs..."
134133
export NODE_OPTIONS="--max-old-space-size=8192"
135-
# cp android/gradle.properties.github android/gradle.properties - Build for all apps to stabilize e2e
134+
cp android/gradle.properties.github android/gradle.properties
136135
yarn build:android:${{ inputs.build_type }}:e2e
137136
shell: bash
138137
env:
@@ -179,7 +178,7 @@ jobs:
179178
MM_INFURA_PROJECT_ID: ${{ secrets.MM_INFURA_PROJECT_ID }}
180179

181180
- name: Repack APK with JS updates using @expo/repack-app
182-
if: ${{ steps.cache-restore.outputs.cache-hit == 'true' }}
181+
if: ${{ steps.apk-cache-restore.outputs.cache-hit == 'true' && steps.gradle-cache-restore.outputs.cache-hit == 'true' }}
183182
run: |
184183
echo "📦 Repacking APK with updated JavaScript bundle using @expo/repack-app..."
185184
# Use the optimized repack script which uses @expo/repack-app
@@ -230,14 +229,14 @@ jobs:
230229

231230
# Cache build artifacts with the pre-build fingerprint
232231
- name: Cache build artifacts
233-
if: ${{ steps.cache-restore.outputs.cache-hit != 'true' }}
232+
if: ${{ steps.apk-cache-restore.outputs.cache-hit != 'true' || steps.gradle-cache-restore.outputs.cache-hit != 'true' }}
234233
uses: cirruslabs/cache@v4
235234
with:
236235
path: |
237236
${{ steps.determine-target-paths.outputs.apk-target-path }}/${{ steps.determine-target-paths.outputs.artifact_name }}.apk
238237
${{ steps.determine-target-paths.outputs.test-apk-target-path }}/${{ steps.determine-target-paths.outputs.artifact_name }}-androidTest.apk
239238
${{ steps.determine-target-paths.outputs.aab-target-path }}/${{ steps.determine-target-paths.outputs.artifact_name }}.aab
240-
key: android-apk-${{ inputs.build_type }}-${{ steps.generate-fingerprint.outputs.fingerprint }}
239+
key: android-apk-${{ inputs.build_type }}-${{ env.CACHE_GENERATION }}-${{ steps.generate-fingerprint.outputs.fingerprint }}
241240

242241
- name: Upload Android APK
243242
id: upload-apk

0 commit comments

Comments
 (0)