Specify the JVM target for Kotlin #28
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
name: Android CI | |
on: | |
push: | |
tags: | |
- 'v*' | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache Gradle dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Clean Build | |
run: ./gradlew clean | |
- name: Build with Gradle | |
run: ./gradlew build -x lint --info | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Package | |
path: build/libs | |
- name: Upload Lint Report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: lint-report | |
path: app/build/reports/lint-results-debug.html |