Compare commits

...
Author SHA1 Message Date
robin f275ffe0ba fix workflow #16
Build & Release Android App / build (push) Failing after 22m32s
2026-09-19 19:26:05 +02:00
robin 9ef3cb1ee6 fix workflow #15
Build & Release Android App / build (push) Failing after 13m39s
2026-09-19 19:09:09 +02:00
robin 660dc8fd89 fix workflow #14
Build & Release Android App / build (push) Failing after 8m15s
2026-09-19 18:58:50 +02:00
robin 70f0e22e5e fix workflow #13
Build & Release Android App / build (push) Failing after 5m22s
2026-09-19 18:48:11 +02:00
robin f5775cd5a1 fix workflow #13
Build & Release Android App / build (push) Failing after 5m22s
2026-09-19 18:39:01 +02:00
robin 0d189a69de fix workflow #12
Build & Release Android App / build (push) Failing after 5m23s
2026-09-19 18:31:36 +02:00
+40 -11
View File
@@ -1,9 +1,10 @@
# .gitea/workflows/build-release.yml
name: Build & Release Android App name: Build & Release Android App
on: on:
push: push:
tags: tags:
- 'v*' # Startet bei Tags wie v1.0.0, v1.0.1 etc. - 'v*'
jobs: jobs:
build: build:
@@ -12,21 +13,49 @@ jobs:
- name: Code auschecken - name: Code auschecken
uses: actions/checkout@v4 uses: actions/checkout@v4
# HIER IST DIE LÖSUNG: Java 25 statt 17 bereitstellen - name: Java/JDK 17 einrichten
- name: Java/JDK 25 einrichten uses: actions/setup-java@v5
uses: actions/setup-java@v4
with: with:
java-version: '25' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
cache: gradle
- name: Gradle einrichten - name: Rechte für gradlew setzen
uses: gradle/actions/setup-gradle@v3 run: chmod +x gradlew
- name: Android SDK Pfad prüfen & einrichten
run: |
if [ -d "/usr/local/lib/android/sdk" ]; then
SDK_PATH="/usr/local/lib/android/sdk"
elif [ -d "/opt/android-sdk" ]; then
SDK_PATH="/opt/android-sdk"
else
echo "Android SDK nicht gefunden. Installiere cmdline-tools..."
SDK_PATH="$HOME/android-sdk"
mkdir -p "$SDK_PATH/cmdline-tools"
cd "$SDK_PATH/cmdline-tools"
curl -s -o tools.zip https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
unzip -q tools.zip
mv cmdline-tools latest
rm tools.zip
fi
echo "ANDROID_HOME=$SDK_PATH" >> $GITHUB_ENV
echo "ANDROID_SDK_ROOT=$SDK_PATH" >> $GITHUB_ENV
echo "sdk.dir=$SDK_PATH" > local.properties
- name: Android SDK Lizenzen vorab akzeptieren
run: |
LIC_DIR="${ANDROID_HOME:-$HOME/android-sdk}/licenses"
mkdir -p "$LIC_DIR"
echo -e "\n24333f8a637b37ea6d1270c750f0160576065016" > "$LIC_DIR/android-sdk-license"
echo -e "\n84831b9409646a456e88576d19212d3582701724" >> "$LIC_DIR/android-sdk-license"
echo -e "\nd975f751698a7780098d5c6814341db27684b376" > "$LIC_DIR/android-sdk-preview-license"
echo -e "\n33b6a2b64607f11b759f320ef9dff4ae5e40007e" > "$LIC_DIR/android-googletv-license"
echo -e "\n6010077ebe6b4f930974d1266684e201b8723913" > "$LIC_DIR/android-googlexr-license"
- name: Android Release APK bauen - name: Android Release APK bauen
# Keine fehleranfälligen Flags mehr nötig! run: ./gradlew assembleRelease --no-daemon
run: |
chmod +x gradlew
./gradlew assembleRelease
- name: Release in Gitea erstellen - name: Release in Gitea erstellen
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2