Skip to content

Commit

Permalink
Add build APK action
Browse files Browse the repository at this point in the history
  • Loading branch information
AsemLab committed Jul 29, 2024
1 parent 67340b8 commit c6985c0
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,31 @@ jobs:
run: chmod +x ./gradlew

- name: Run Debug Tests
run: ./gradlew testDebugUnitTest
run: ./gradlew testDebugUnitTest

build_job:
name: Building the APK
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restore Cache
uses: actions/cache@v2
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

0 comments on commit c6985c0

Please sign in to comment.