From 1087ea4c702e78fa525f63fb9757762c67766685 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Wed, 29 Oct 2025 08:38:51 -0600 Subject: [PATCH] actions: split lint checks and apk build should allow me to generate builds even if lint is bad --- .github/workflows/android.yml | 10 +++------- .github/workflows/lint.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 59383ae5d..85caccd1a 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -1,15 +1,15 @@ -name: Android CI +name: Android Build on: push: branches: [] pull_request: branches: [] - + jobs: build: runs-on: ubuntu-latest - + steps: - name: Install ninja-build run: sudo apt-get install -y ninja-build @@ -25,10 +25,6 @@ jobs: 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 - name: Build debug APK with Gradle run: ./gradlew app:packageDebug - name: Upload debug APK artifact diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..a8ee73485 --- /dev/null +++ b/.github/workflows/lint.yml @@ -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