actions: split lint checks and apk build
should allow me to generate builds even if lint is bad
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
name: Android CI
|
name: Android Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: []
|
branches: []
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: []
|
branches: []
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install ninja-build
|
- name: Install ninja-build
|
||||||
run: sudo apt-get install -y ninja-build
|
run: sudo apt-get install -y ninja-build
|
||||||
@@ -25,10 +25,6 @@ jobs:
|
|||||||
cache: gradle
|
cache: gradle
|
||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
- name: Check formatting with spotless
|
|
||||||
run: ./gradlew spotlessCheck
|
|
||||||
- name: Test musikr with Gradle
|
|
||||||
run: ./gradlew musikr:testDebug
|
|
||||||
- name: Build debug APK with Gradle
|
- name: Build debug APK with Gradle
|
||||||
run: ./gradlew app:packageDebug
|
run: ./gradlew app:packageDebug
|
||||||
- name: Upload debug APK artifact
|
- name: Upload debug APK artifact
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
name: Android Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: []
|
||||||
|
pull_request:
|
||||||
|
branches: []
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Install ninja-build
|
||||||
|
run: sudo apt-get install -y ninja-build
|
||||||
|
- name: Clone repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Clone submodules
|
||||||
|
run: git submodule update --init --recursive --remote
|
||||||
|
- name: Set up JDK 17
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
java-version: '17'
|
||||||
|
distribution: 'temurin'
|
||||||
|
cache: gradle
|
||||||
|
- name: Grant execute permission for gradlew
|
||||||
|
run: chmod +x gradlew
|
||||||
|
- name: Check formatting with spotless
|
||||||
|
run: ./gradlew spotlessCheck
|
||||||
|
- name: Test musikr with Gradle
|
||||||
|
run: ./gradlew musikr:testDebug
|
||||||
Reference in New Issue
Block a user