mirror of
https://github.com/revanced/aapt2.git
synced 2024-10-19 11:59:53 +02:00
perf: clone AOSP base only once
This commit is contained in:
parent
050a59a8f5
commit
9b638dedce
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -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
|
||||
|
||||
|
20
termux/aapt2-Do-not-clone-base.patch
Normal file
20
termux/aapt2-Do-not-clone-base.patch
Normal 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
|
Loading…
Reference in New Issue
Block a user