From 3459739b6f318ca10af413721bd9728e5f24e301 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 11 Nov 2026 14:39:18 -0500 Subject: [PATCH] ci: replace github workflows with a gitea actions build (host runner, debug APK + musikr tests) --- .gitea/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ .github/workflows/android.yml | 34 ---------------------------------- .github/workflows/lint.yml | 31 ------------------------------- 3 files changed, 33 insertions(+), 65 deletions(-) create mode 100644 .gitea/workflows/build.yml delete mode 100644 .github/workflows/android.yml delete mode 100644 .github/workflows/lint.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 000000000..4c3137e4d --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build + +on: + push: + branches: [dev] + workflow_dispatch: + +env: + ANDROID_HOME: /home/jay/Android/Sdk + +jobs: + build: + runs-on: angmar + steps: + - name: Checkout + uses: https://github.com/actions/checkout@v4 + with: + submodules: recursive + + - name: Set up JDK 21 + uses: https://github.com/actions/setup-java@v4 + with: + java-version: "21" + distribution: "jetbrains" + + - name: Build debug APK + run: ./gradlew app:packageDebug musikr:testDebug + + - name: Upload debug APK + uses: https://github.com/actions/upload-artifact@v4 + with: + name: auxio-fork-debug + path: app/build/outputs/apk/debug/app-debug.apk diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml deleted file mode 100644 index f9a87e0c8..000000000 --- a/.github/workflows/android.yml +++ /dev/null @@ -1,34 +0,0 @@ -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 - - name: Clone repository - uses: actions/checkout@v4 - - name: Clone submodules - run: git submodule update --init --recursive - - name: Set up JDK 21 - uses: actions/setup-java@v4 - with: - java-version: "21" - distribution: "jetbrains" - cache: gradle - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build debug APK with Gradle - run: ./gradlew app:packageDebug - - name: Upload debug APK artifact - uses: actions/upload-artifact@v4 - with: - name: Auxio_Canary - path: ./app/build/outputs/apk/debug/app-debug.apk diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 5f1657e98..000000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,31 +0,0 @@ -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 - - 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