-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TgBot++: workflows: Add android app ci
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
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/checkout@v4.1.6 | ||
|
||
- name: Set up JDK ${{ env.JAVA_VERSION }} | ||
uses: actions/setup-java@v4.2.1 | ||
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/setup-android@v3.2.1 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x clientapp/android/gradlew | ||
|
||
- name: Check submodules | ||
run: git submodule update --init --recursive | ||
|
||
- 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/ |
Empty file.