Skip to content

Commit 4046f37

Browse files
authored
Merge pull request #2 from kimocoder/copilot/add-gradle-ci-workflow
ci: add Gradle CI workflow with APK artifact upload
2 parents 8c181b7 + e8ba7a3 commit 4046f37

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/android-ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Gradle CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: '17'
21+
distribution: 'temurin'
22+
23+
- name: Setup Gradle
24+
uses: gradle/actions/setup-gradle@v4
25+
26+
- name: Build debug APK
27+
run: ./gradlew assembleDebug
28+
29+
- name: Upload APK artifacts
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: apk-debug
33+
path: app/build/outputs/apk/debug/*.apk
34+
if-no-files-found: error

0 commit comments

Comments
 (0)