perf: clone AOSP base only once

This commit is contained in:
Lucaskyy 2022-06-15 21:00:23 +02:00
parent 050a59a8f5
commit 9b638dedce
No known key found for this signature in database
GPG Key ID: 1530BFF96D1EEB89
2 changed files with 33 additions and 0 deletions

View File

@ -27,6 +27,19 @@ jobs:
repository: termux/termux-packages
path: termux-packages
- name: Apply termux patches
run: |
cd termux-packages
git apply ../termux/*.patch
- name: Clone AOSP base repository
uses: actions/checkout@v3
with:
repository: termux/termux-packages
path: termux-packages/packages/aapt/base
ref: android-12.0.0_r27
fetch-depth: 1
- name: Add aapt2 patches
run: cp *.patch termux-packages/packages/aapt

View File

@ -0,0 +1,20 @@
--- a/packages/aapt/build.sh
+++ b/packages/aapt/build.sh
@@ -6,8 +6,7 @@ _TAG_VERSION=12.0.0
_TAG_REVISION=27
TERMUX_PKG_VERSION=${_TAG_VERSION}.${_TAG_REVISION}
TERMUX_PKG_REVISION=3
-TERMUX_PKG_SRCURL=(https://android.googlesource.com/platform/frameworks/base
- https://android.googlesource.com/platform/system/core
+TERMUX_PKG_SRCURL=(https://android.googlesource.com/platform/system/core
https://android.googlesource.com/platform/system/libbase
https://android.googlesource.com/platform/system/libziparchive
https://android.googlesource.com/platform/system/logging
@@ -21,7 +20,6 @@ TERMUX_PKG_SHA256=(SKIP_CHECKSUM
SKIP_CHECKSUM
SKIP_CHECKSUM
SKIP_CHECKSUM
- SKIP_CHECKSUM
SKIP_CHECKSUM)
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_BUILD_IN_SRC=true