Skip to content

Commit

Permalink
Create android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mardous authored Aug 6, 2024
1 parent 096f46d commit 017fe60
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Android CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v3
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- uses: gradle/gradle-build-action@v3
- name: Run Lint
run: ./gradlew lint

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- uses: gradle/gradle-build-action@v3
- name: Build with Gradle
run: ./gradlew app:assemble

0 comments on commit 017fe60

Please sign in to comment.