fix: revert back to this for now (dont squash)

This commit is contained in:
Lucaskyy 2022-06-15 22:56:49 +02:00
parent 28b4e7ae73
commit 63c29d1dfb
No known key found for this signature in database
GPG Key ID: 1530BFF96D1EEB89

View File

@ -17,6 +17,10 @@ jobs:
ANDROID_HOME: "/opt/termux/android-sdk"
NDK: "/opt/termux/android-ndk"
strategy:
matrix:
target_arch: [aarch64, arm, i686]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
@ -27,23 +31,24 @@ jobs:
repository: termux/termux-packages
path: termux-packages
- name: Apply termux patches
run: |
cd termux-packages
git apply ../termux/*.patch
- name: Add aapt2 patches
run: cp *.patch termux-packages/packages/aapt
- 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
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
uses: actions/upload-artifact@v3
with:
name: aapt2-${{ github.sha }}
path: termux-packages/output/*/data/data/com.termux/files/usr/bin/*
if-no-files-found: error
name: aapt-${{ matrix.target_arch }}-${{ github.sha }}
path: termux-packages/output/extracted_packages/data/data/com.termux/files/usr/bin/