@@ -101,6 +101,20 @@ jobs:
101
101
key : ${{ runner.os }}-gradle-v1-${{ hashFiles('**/*.gradle*') }}
102
102
restore-keys : ${{ runner.os }}-gradle-v1
103
103
104
+ # This appears to be 'Cache Size: ~1230 MB (1290026823 B)' based on watching action logs
105
+ # Repo limit is 10GB; branch caches are independent; branches may read default branch cache.
106
+ # We don't want branches to evict main branch snapshot, so save on main, read-only all else
107
+ - name : AVD cache
108
+ uses : actions/cache@v3
109
+ id : avd-cache
110
+ with :
111
+ path : |
112
+ ~/.android/avd/*
113
+ ~/.android/adb*
114
+ key : avd-${{ matrix.api-level }}-${{ matrix.arch }}-${{matrix.target}}-v1-${{ hashFiles('~/.android/avd/**/snapshots/**') }}
115
+ restore-keys : |
116
+ avd-${{ matrix.api-level }}-${{ matrix.arch }}-${{matrix.target}}-v1
117
+
104
118
- name : Build Android App
105
119
uses : nick-invision/retry@v2
106
120
with :
@@ -129,20 +143,6 @@ jobs:
129
143
curl --output /dev/null --silent --head --fail "http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&inlineSourceMap=true"
130
144
echo "...javascript bundle ready."
131
145
132
- # This appears to be 'Cache Size: ~1230 MB (1290026823 B)' based on watching action logs
133
- # Repo limit is 10GB; branch caches are independent; branches may read default branch cache.
134
- # We don't want branches to evict main branch snapshot, so save on main, read-only all else
135
- - name : AVD cache
136
- uses : actions/cache@v3
137
- id : avd-cache
138
- with :
139
- path : |
140
- ~/.android/avd/*
141
- ~/.android/adb*
142
- key : avd-${{ matrix.api-level }}-${{ matrix.arch }}-${{matrix.target}}-v1-${{ hashFiles('~/.android/avd/**/snapshots/**') }}
143
- restore-keys : |
144
- avd-${{ matrix.api-level }}-${{ matrix.arch }}-${{matrix.target}}-v1
145
-
146
146
- name : AVD Boot and Snapshot Creation
147
147
# Only generate a snapshot with a cache miss
148
148
# Comment the if out to generate snapshots on branch for performance testing
0 commit comments