From ff3a237d908cd0e39cb15ee88bbaee0f1cd8dceb Mon Sep 17 00:00:00 2001 From: bengris32 Date: Wed, 10 Jul 2024 07:30:22 +0000 Subject: [PATCH] .github: Add workflow for building APK Change-Id: Ic1ee21466a59964a58b896189e935b3a12348a54 Signed-off-by: Kizziama --- .github/workflows/build.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..5850415 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,33 @@ +name: Build APK + +env: + APKTOOL_VER: 2.6.1 + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-java@v3 + with: + distribution: 'adopt-hotspot' + java-version: '8' + + - uses: robinraju/release-downloader@v1.5 + with: + repository: 'iBotPeaches/Apktool' + tag: 'v${{ env.APKTOOL_VER }}' + fileName: 'apktool_${{ env.APKTOOL_VER }}.jar' + + - run: java -jar apktool_${{ env.APKTOOL_VER }}.jar b . + + - uses: actions/upload-artifact@v3 + with: + name: APK + path: dist/QtiTelephony.apk