mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 13:57:46 +01:00
Merge pull request #2644 from iBotPeaches/detect-valid-aapt-builds
feat: check aapt/aapt binaries for execution and list static nature
This commit is contained in:
parent
5eed288375
commit
8bcab69f25
51
.github/workflows/build.yml
vendored
51
.github/workflows/build.yml
vendored
@ -1,4 +1,6 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
env:
|
||||||
|
BINARY_PATH: brut.apktool/apktool-lib/src/main/resources/prebuilt
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -11,8 +13,57 @@ on:
|
|||||||
- '.github/workflows/**'
|
- '.github/workflows/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
analyze-mac-aapt:
|
||||||
|
runs-on: macos-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
file: [aapt_64, aapt2_64]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Verify Executable
|
||||||
|
run: ${{ env.BINARY_PATH }}/macosx/${{ matrix.file }} version
|
||||||
|
|
||||||
|
- name: Output Static
|
||||||
|
run: otool -L ${{ env.BINARY_PATH }}/macosx/${{ matrix.file }} || true
|
||||||
|
|
||||||
|
analyze-linux-aapt:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
file: [aapt, aapt_64, aapt2, aapt2_64]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Verify Executable
|
||||||
|
run: ${{ env.BINARY_PATH }}/linux/${{ matrix.file }} version
|
||||||
|
|
||||||
|
- name: Output Static
|
||||||
|
run: ldd ${{ env.BINARY_PATH }}/linux/${{ matrix.file }} || true
|
||||||
|
|
||||||
|
analyze-windows-aapt:
|
||||||
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
file: [aapt.exe, aapt_64.exe, aapt2.exe, aapt2_64.exe]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Verify Executable
|
||||||
|
run: ${{ env.BINARY_PATH }}/windows/${{ matrix.file }} version
|
||||||
|
|
||||||
|
- name: Output Static
|
||||||
|
run: ldd ${{ env.BINARY_PATH }}/windows/${{ matrix.file }} || true
|
||||||
|
|
||||||
build-and-test-with-Java-8-and-later:
|
build-and-test-with-Java-8-and-later:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
needs:
|
||||||
|
- analyze-mac-aapt
|
||||||
|
- analyze-linux-aapt
|
||||||
|
- analyze-windows-aapt
|
||||||
name: Build/Test (JDK ${{ matrix.java }}, ${{ matrix.os }})
|
name: Build/Test (JDK ${{ matrix.java }}, ${{ matrix.os }})
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
|
Loading…
Reference in New Issue
Block a user