Xiaomi Runner Config
Some checks failed
Android Build Final Fixed / build-android (push) Failing after 1m29s
Some checks failed
Android Build Final Fixed / build-android (push) Failing after 1m29s
This commit is contained in:
@@ -11,14 +11,13 @@ jobs:
|
||||
- name: Checkout Main Project
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: false # WICHTIG: Verhindert den Absturz beim Checkout
|
||||
path: "."
|
||||
submodules: false
|
||||
# Wir lassen path weg, damit er direkt in den Workspace checkt
|
||||
|
||||
- name: Manual Clone easy-nostr
|
||||
run: |
|
||||
# Wir klonen dein Crate manuell in den Ordner, den Rust erwartet
|
||||
# Wir nutzen den Pfad aus deinem 'ls src-tauri'
|
||||
git clone https://gitea.malxte.de/Bytemalte/easy-nostr.git Bytemalte/marstemedia/src-tauri/easy-nostr
|
||||
# Direkt in den Unterordner klonen, ohne doppelte Pfade
|
||||
git clone https://gitea.malxte.de/Bytemalte/easy-nostr.git src-tauri/easy-nostr
|
||||
|
||||
- name: Install System Dependencies
|
||||
run: |
|
||||
@@ -32,9 +31,8 @@ jobs:
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
rustup target add aarch64-linux-android
|
||||
|
||||
- name: Install Trunk & Tauri-CLI (Instant Binary)
|
||||
- name: Install Trunk & Tauri-CLI
|
||||
run: |
|
||||
# Keine 20 Min warten: Wir laden die fertigen Programme
|
||||
wget -qO- https://github.com/trunk-rs/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf- -C /usr/local/bin
|
||||
wget -qO- https://github.com/tauri-apps/tauri/releases/latest/download/cargo-tauri-x86_64-unknown-linux-gnu.tgz | tar -xzf- -C /usr/local/bin
|
||||
chmod +x /usr/local/bin/trunk /usr/local/bin/cargo-tauri
|
||||
@@ -56,15 +54,12 @@ jobs:
|
||||
- name: Build and Compile
|
||||
run: |
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
export NDK_HOME=$HOME/android-sdk/ndk/25.1.8937393
|
||||
# Kein 'cd Bytemalte/marstemedia' mehr nötig!
|
||||
|
||||
# In dein Projektverzeichnis wechseln
|
||||
cd Bytemalte/marstemedia
|
||||
|
||||
# 1. Frontend mit Trunk bauen (erzeugt den dist-Ordner)
|
||||
# 1. Frontend mit Trunk bauen
|
||||
trunk build --release
|
||||
|
||||
# 2. Android APK bauen (mit der tauri-binary)
|
||||
# 2. Android APK bauen
|
||||
if [ ! -d "src-tauri/gen/android" ]; then
|
||||
cargo-tauri android init
|
||||
fi
|
||||
@@ -76,4 +71,4 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Xiaomi-App
|
||||
path: "Bytemalte/marstemedia/src-tauri/gen/android/app/build/outputs/apk/release/*.apk"
|
||||
path: "src-tauri/gen/android/app/build/outputs/apk/release/*.apk"
|
||||
|
||||
Reference in New Issue
Block a user