Skip to content

Commit b4c6585

Browse files
committed
Add GitHub Actions workflow for continuous integration.
- Create `android.yml` workflow to automate builds on pushes and pull requests to `main` and `master` branches. - Configure build environment with JDK 17 (Temurin distribution) and Gradle caching. - Implement build step to generate the debug APK using `./gradlew assembleDebug`. - Add artifact upload step to preserve the resulting `app-debug.apk` for each successful build.
1 parent d2ed6fd commit b4c6585

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/android.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ "main", "master" ]
6+
pull_request:
7+
branches: [ "main", "master" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: set up JDK 17
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
21+
cache: gradle
22+
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
26+
- name: Build with Gradle
27+
run: ./gradlew assembleDebug
28+
29+
- name: Upload APK
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: app-debug
33+
path: app/build/outputs/apk/debug/app-debug.apk

0 commit comments

Comments
 (0)