Skip to content

Commit 2358a72

Browse files
committed
feat: add GitHub Actions workflow for Android builds
This commit introduces a new GitHub Actions workflow named "AndroidBuild". The workflow is triggered on pull requests and pushes to the `main` branch. It performs the following steps: - Checks out the repository - Sets up Java JDK version 21 - Builds the Android project using Gradle - Uploads the generated `app-debug.apk` as a build artifact named "SuperApp.apk"
1 parent dd6cf00 commit 2358a72

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/AndroidBuild.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: AndroidBuild
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
push:
7+
branches:
8+
- main
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4.2.2
15+
16+
- name: Setup Java JDK
17+
uses: actions/setup-java@v3.14.1
18+
with:
19+
distribution: 'adopt'
20+
java-version: '21'
21+
22+
- name: Build with Gradle
23+
run: ./gradlew build
24+
25+
- name: Upload a Build Artifact
26+
uses: actions/upload-artifact@v4.6.2
27+
with:
28+
name: "SuperApp.apk"
29+
path: app/build/outputs/apk/app-debug.apk

0 commit comments

Comments
 (0)