Build APK / build (push) Failing after 1m38s
- Add gradlew, gradlew.bat, and gradle-wrapper.jar (v8.2) - Remove gradle/actions/setup-gradle step (runner cache issue) - Remove 'Generate Gradle Wrapper' step (files now committed) - Build directly with ./gradlew assembleDebug
40 lines
867 B
YAML
40 lines
867 B
YAML
name: Build APK
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
|
|
- name: Setup Android SDK
|
|
uses: android-actions/setup-android@v3
|
|
|
|
- name: Install SDK components
|
|
run: |
|
|
sdkmanager --install "platforms;android-34" "build-tools;34.0.0" "cmdline-tools;latest"
|
|
|
|
- name: Build Debug APK
|
|
run: ./gradlew assembleDebug --no-daemon
|
|
|
|
- name: Create Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: app/build/outputs/apk/debug/*.apk
|
|
name: "v${{ github.run_number }}"
|
|
make_latest: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
|