Skip to content

Commit

Permalink
Merge pull request #77 from trindadedev13/master
Browse files Browse the repository at this point in the history
feat: Android CI to compile debug
  • Loading branch information
mi-g-alex authored Aug 29, 2024
2 parents 5f9953b + 88ab01d commit 8659669
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 1 deletion.
54 changes: 54 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: TGMonet Debug

on:
workflow_dispatch:
push:
paths:
- .github/workflows/android.yml
- app/**
- build.gradle.kts
- gradle.properties
- gradlew
- gradlew.bat
- settings.gradle.kts
pull_request:
paths:
- .github/workflows/android.yml
- app/**
- build.gradle.kts
- gradle.properties
- gradlew
- gradlew.bat
- settings.gradle.kts

jobs:
build_debug_apk:
name: Build TGMonet Debug APK
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up JDK 22
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'oracle'
cache: gradle

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

- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4

- name: Build with Gradle
id: gradle_build_debug
run: ./gradlew assembleDebug

- name: Upload debug apk
uses: actions/upload-artifact@v4
with:
name: app-debug
path: app/build/outputs/apk/debug
11 changes: 10 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ android {
dependenciesInfo.includeInApk = false
dependenciesInfo.includeInBundle = false

signingConfigs {
getByName("debug") {
storeFile = file(layout.buildDirectory.dir("../testkey.keystore"))
storePassword = "testkey"
keyAlias = "testkey"
keyPassword = "testkey"
}
}

}

dependencies {
Expand All @@ -78,4 +87,4 @@ dependencies {
implementation(libs.coil.compose)
implementation(libs.coil.gif)
debugImplementation(libs.ui.tooling)
}
}
Binary file added app/testkey.keystore
Binary file not shown.

0 comments on commit 8659669

Please sign in to comment.