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:
Connor Tumbleson 2021-09-01 07:23:39 -04:00 committed by GitHub
parent 5eed288375
commit 8bcab69f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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