From a06bccc75f384e2f1244d47fbc2c57b4d858935e Mon Sep 17 00:00:00 2001 From: Sushrut1101 Date: Tue, 5 Mar 2024 13:15:08 +0530 Subject: [PATCH] ImsService: Add workflow to rebuild APK Change-Id: If0f4df5d5eb0ac6809b7e932825f7c9aa444064f Signed-off-by: Sushrut1101 --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..81092ae --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build + +env: + APKTOOL_VER: 2.9.3 + +on: + push: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 + with: + distribution: 'adopt-hotspot' + java-version: '8' + + - uses: robinraju/release-downloader@v1.9 + with: + repository: 'iBotPeaches/Apktool' + tag: 'v${{ env.APKTOOL_VER }}' + fileName: 'apktool_${{ env.APKTOOL_VER }}.jar' + + - name: Build ImsService + run: | + java -jar apktool_${{ env.APKTOOL_VER }}.jar b . + sha1sum dist/* | sed 's|dist/||g' | tee dist/sha1.txt + + - uses: actions/upload-artifact@v3 + with: + name: APK + path: dist