Skip to content

Fix Release (#6)

Fix Release (#6) #85

Workflow file for this run

name: Build Amuzic
on: [push]
jobs:
build:
runs-on: ubuntu-latest
environment: Development
steps:
- uses: actions/checkout@v4
- name: Set Up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Build Debug APK
run: |
echo ${{ github.workspace }}
./gradlew assembleDebug
#- name: Build Release APK
# run: ./gradlew assembleRelease
- name: Upload Debug APK
uses: actions/upload-artifact@v4
with:
name: amuzic-debug
path: ./app/build/outputs/apk/debug/*.apk
#- name: Upload Release APK
# uses: actions/upload-artifact@v4
# with:
# name: amuzic-unsigned-release
# path: ./app/build/outputs/apk/release/*.apk
lint:
needs: build
environment: Development
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Run linter
run: ./gradlew lint
- uses: actions/upload-artifact@v4
with:
name: lint-results
path: ./app/build/reports/*.html
ktlint:
needs: build
environment: Development
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Kotlin linter
run: ./gradlew ktlintCheck