Skip to content

Commit

Permalink
TgBot++: workflows: Add android app ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Royna2544 committed Jun 7, 2024
1 parent eade173 commit 79ba1c0
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/android_client_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build TgBot++ Client (Android)

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

env:
# Customize the Java version needed for your project here
JAVA_VERSION: '17'

steps:
- name: Checkout code
uses: actions/[email protected]

- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}

- name: Prepare Gradle Cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up Android SDK
uses: android-actions/[email protected]

- name: Grant execute permission for gradlew
run: chmod +x clientapp/android/gradlew

- name: Build with Gradle
run: |
cd clientapp/android
./gradlew --no-daemon build
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: app-build
path: |
clientapp/android/app/build/outputs/apk/

0 comments on commit 79ba1c0

Please sign in to comment.