ci: replace github workflows with a gitea actions build (host runner, debug APK + musikr tests)
Build / build (push) Failing after 2m19s
Build / build (push) Failing after 2m19s
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user