-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from trindadedev13/master
feat: Android CI to compile debug
- Loading branch information
Showing
3 changed files
with
64 additions
and
1 deletion.
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,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 |
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
Binary file not shown.