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
|
- name: Checkout Main Project
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: false # WICHTIG: Verhindert den Absturz beim Checkout
|
submodules: false
|
||||||
path: "."
|
# Wir lassen path weg, damit er direkt in den Workspace checkt
|
||||||
|
|
||||||
- name: Manual Clone easy-nostr
|
- name: Manual Clone easy-nostr
|
||||||
run: |
|
run: |
|
||||||
# Wir klonen dein Crate manuell in den Ordner, den Rust erwartet
|
# Direkt in den Unterordner klonen, ohne doppelte Pfade
|
||||||
# Wir nutzen den Pfad aus deinem 'ls src-tauri'
|
git clone https://gitea.malxte.de/Bytemalte/easy-nostr.git src-tauri/easy-nostr
|
||||||
git clone https://gitea.malxte.de/Bytemalte/easy-nostr.git Bytemalte/marstemedia/src-tauri/easy-nostr
|
|
||||||
|
|
||||||
- name: Install System Dependencies
|
- name: Install System Dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -32,9 +31,8 @@ jobs:
|
|||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
rustup target add aarch64-linux-android
|
rustup target add aarch64-linux-android
|
||||||
|
|
||||||
- name: Install Trunk & Tauri-CLI (Instant Binary)
|
- name: Install Trunk & Tauri-CLI
|
||||||
run: |
|
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/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
|
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
|
chmod +x /usr/local/bin/trunk /usr/local/bin/cargo-tauri
|
||||||
@@ -56,15 +54,12 @@ jobs:
|
|||||||
- name: Build and Compile
|
- name: Build and Compile
|
||||||
run: |
|
run: |
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
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
|
# 1. Frontend mit Trunk bauen
|
||||||
cd Bytemalte/marstemedia
|
|
||||||
|
|
||||||
# 1. Frontend mit Trunk bauen (erzeugt den dist-Ordner)
|
|
||||||
trunk build --release
|
trunk build --release
|
||||||
|
|
||||||
# 2. Android APK bauen (mit der tauri-binary)
|
# 2. Android APK bauen
|
||||||
if [ ! -d "src-tauri/gen/android" ]; then
|
if [ ! -d "src-tauri/gen/android" ]; then
|
||||||
cargo-tauri android init
|
cargo-tauri android init
|
||||||
fi
|
fi
|
||||||
@@ -76,4 +71,4 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Xiaomi-App
|
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