From cd6e9c8423efd4d5492c10891396e58a40fcd3c0 Mon Sep 17 00:00:00 2001 From: Debayan Ghosh Dastider Date: Sat, 10 Dec 2022 02:50:07 +0530 Subject: [PATCH] Added CI for debug apk build using Github actions --- .github/workflows/anisearch.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/anisearch.yml diff --git a/.github/workflows/anisearch.yml b/.github/workflows/anisearch.yml new file mode 100644 index 0000000..78e8880 --- /dev/null +++ b/.github/workflows/anisearch.yml @@ -0,0 +1,36 @@ +name: Build and Test + +on: + push: + branches: [ master ] + + workflow_dispatch: + +jobs: + + build_job: + name: Building the apk + runs-on: ubuntu-latest + continue-on-error: true + steps: + - name: Checkout + uses: actions/checkout@v2.4.2 + - name: Restore Cache + uses: actions/cache@v3.0.6 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Change wrapper permissions + run: chmod +x ./gradlew + - name: Assemble Debug + run: ./gradlew assembleDebug + + - name: Upload Apk + uses: actions/upload-artifact@v2 + with: + name: apk + path: app/build/outputs/apk/debug/**.apk