mirror of
https://github.com/revanced/aapt2.git
synced 2024-10-19 20:09:43 +02:00
fix: revert back to this for now (dont squash)
This commit is contained in:
parent
28b4e7ae73
commit
63c29d1dfb
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@ -17,6 +17,10 @@ jobs:
|
|||||||
ANDROID_HOME: "/opt/termux/android-sdk"
|
ANDROID_HOME: "/opt/termux/android-sdk"
|
||||||
NDK: "/opt/termux/android-ndk"
|
NDK: "/opt/termux/android-ndk"
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target_arch: [aarch64, arm, i686]
|
||||||
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -27,23 +31,24 @@ jobs:
|
|||||||
repository: termux/termux-packages
|
repository: termux/termux-packages
|
||||||
path: termux-packages
|
path: termux-packages
|
||||||
|
|
||||||
- name: Apply termux patches
|
|
||||||
run: |
|
|
||||||
cd termux-packages
|
|
||||||
git apply ../termux/*.patch
|
|
||||||
|
|
||||||
- name: Add aapt2 patches
|
- name: Add aapt2 patches
|
||||||
run: cp *.patch termux-packages/packages/aapt
|
run: cp *.patch termux-packages/packages/aapt
|
||||||
|
|
||||||
- name: Build aapt package
|
- name: Build aapt package
|
||||||
run: ./build.sh
|
run: |
|
||||||
|
cd termux-packages
|
||||||
|
./scripts/run-docker.sh ./build-package.sh -a ${{ matrix.target_arch }} aapt
|
||||||
|
|
||||||
- name: Prepare artifacts
|
- name: Prepare artifacts
|
||||||
run: ./prepare.sh
|
run: |
|
||||||
|
cd termux-packages/output
|
||||||
|
for pkg in *.deb; do dpkg-deb -x $pkg extracted_packages; done
|
||||||
|
cd extracted_packages/data/data/com.termux/files/usr/
|
||||||
|
rm -r include/ share/ lib/pkgconfig/ lib/cmake/
|
||||||
|
find bin ! -name 'aapt2' -mindepth 1 -exec rm -f {} +
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: aapt2-${{ github.sha }}
|
name: aapt-${{ matrix.target_arch }}-${{ github.sha }}
|
||||||
path: termux-packages/output/*/data/data/com.termux/files/usr/bin/*
|
path: termux-packages/output/extracted_packages/data/data/com.termux/files/usr/bin/
|
||||||
if-no-files-found: error
|
|
Loading…
Reference in New Issue
Block a user