Skip to content

Commit f5194cc

Browse files
committed
Add caching for Android SDK in CI workflow
Introduces a cache step for Android SDK components in the GitHub Actions CI workflow to improve build performance and reduce setup time.
1 parent a00d42c commit f5194cc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,19 @@ jobs:
102102
~/.android/adb*
103103
key: avd
104104

105+
- name: Cache Android SDK
106+
uses: actions/cache@v4
107+
with:
108+
path: |
109+
/usr/local/lib/android/sdk/ndk
110+
/usr/local/lib/android/sdk/cmake
111+
/usr/local/lib/android/sdk/build-tools
112+
/usr/local/lib/android/sdk/platforms
113+
/usr/local/lib/android/sdk/platform-tools
114+
/usr/local/lib/android/sdk/system-images
115+
key: android-sdk-${{ runner.os }}-api33-ndk25.1
116+
restore-keys: android-sdk-${{ runner.os }}-api33-ndk25.1
117+
105118
- name: Run Android Emulator
106119
uses: reactivecircus/android-emulator-runner@v2
107120
with:

0 commit comments

Comments
 (0)