From 8bcab69f25ee7cd958a1b54f7f995323b2e41fec Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Wed, 1 Sep 2021 07:23:39 -0400 Subject: [PATCH] Merge pull request #2644 from iBotPeaches/detect-valid-aapt-builds feat: check aapt/aapt binaries for execution and list static nature --- .github/workflows/build.yml | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 56f6da6d..99b6e0d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,6 @@ name: CI +env: + BINARY_PATH: brut.apktool/apktool-lib/src/main/resources/prebuilt on: push: branches: @@ -11,8 +13,57 @@ on: - '.github/workflows/**' 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: runs-on: ${{ matrix.os }} + needs: + - analyze-mac-aapt + - analyze-linux-aapt + - analyze-windows-aapt name: Build/Test (JDK ${{ matrix.java }}, ${{ matrix.os }}) strategy: fail-fast: true