ahhhhhhhhhhhhhhhhhhhhhh
Some checks failed
Build Tauri App (Linux + Windows + Android) / build (push) Failing after 10m39s
Some checks failed
Build Tauri App (Linux + Windows + Android) / build (push) Failing after 10m39s
This commit is contained in:
@@ -41,7 +41,7 @@ jobs:
|
||||
unzip \
|
||||
wget
|
||||
|
||||
# 4️⃣ Setup Java
|
||||
# 4️⃣ Set up Java
|
||||
- name: Set up Java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
@@ -55,63 +55,67 @@ jobs:
|
||||
mkdir -p "$ANDROID_SDK/cmdline-tools"
|
||||
cd "$ANDROID_SDK/cmdline-tools"
|
||||
|
||||
# Download command-line tools
|
||||
wget https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip -O cmdline-tools.zip
|
||||
unzip -q cmdline-tools.zip
|
||||
mv cmdline-tools latest || mv tools latest
|
||||
|
||||
export ANDROID_SDK_ROOT="$ANDROID_SDK"
|
||||
export ANDROID_HOME="$ANDROID_SDK"
|
||||
export PATH="$ANDROID_SDK/cmdline-tools/latest/bin:$ANDROID_SDK/platform-tools:$PATH"
|
||||
|
||||
yes | sdkmanager --licenses || true
|
||||
sdkmanager "platform-tools" "platforms;android-33" "build-tools;33.0.2" "ndk;25.2.9519653"
|
||||
env:
|
||||
ANDROID_HOME: ${{ github.home }}/Android/Sdk
|
||||
ANDROID_SDK_ROOT: ${{ github.home }}/Android/Sdk
|
||||
|
||||
# 6️⃣ Add Windows Rust target
|
||||
# 6️⃣ Persist Android environment variables for subsequent steps
|
||||
- name: Set Android environment variables
|
||||
run: |
|
||||
echo "ANDROID_HOME=$HOME/Android/Sdk" >> $GITHUB_ENV
|
||||
echo "ANDROID_SDK_ROOT=$HOME/Android/Sdk" >> $GITHUB_ENV
|
||||
echo "$HOME/Android/Sdk/platform-tools:$HOME/Android/Sdk/cmdline-tools/latest/bin:$PATH" >> $GITHUB_PATH
|
||||
|
||||
# 7️⃣ Add Windows Rust target
|
||||
- name: Add Windows Rust target
|
||||
run: rustup target add x86_64-pc-windows-gnu
|
||||
|
||||
# 7️⃣ Install Tauri CLI
|
||||
# 8️⃣ Install Tauri CLI
|
||||
- name: Install Tauri CLI
|
||||
run: cargo install tauri-cli
|
||||
|
||||
# 8️⃣ Initialize Android project
|
||||
# 9️⃣ Initialize Android project
|
||||
- name: Initialize Tauri Android project
|
||||
run: |
|
||||
cd src-tauri
|
||||
cargo tauri android init
|
||||
|
||||
# 9️⃣ Build Android APK (Debug)
|
||||
# 🔟 Build Android APK (Debug)
|
||||
- name: Build Android Debug APK
|
||||
run: |
|
||||
cd src-tauri/gen/android
|
||||
./gradlew assembleDebug
|
||||
|
||||
# 🔟 Build Android Release APK
|
||||
# 1️⃣1️⃣ Build Android Release APK
|
||||
- name: Build Android Release APK
|
||||
run: |
|
||||
cd src-tauri/gen/android
|
||||
./gradlew assembleRelease
|
||||
|
||||
# 1️⃣1️⃣ Build Linux packages
|
||||
# 1️⃣2️⃣ Build Linux packages
|
||||
- name: Build Linux packages (deb + rpm)
|
||||
run: |
|
||||
cd src-tauri
|
||||
cargo tauri build
|
||||
|
||||
# 1️⃣2️⃣ Build Windows exe
|
||||
# 1️⃣3️⃣ Build Windows exe
|
||||
- name: Build Windows exe
|
||||
run: |
|
||||
cd src-tauri
|
||||
cargo build --release --target x86_64-pc-windows-gnu
|
||||
|
||||
# 1️⃣3️⃣ Make Linux ELF executable
|
||||
# 1️⃣4️⃣ Make Linux ELF executable
|
||||
- name: Make Linux ELF executable
|
||||
run: chmod +x src-tauri/target/release/bytechat-desktop
|
||||
|
||||
# 1️⃣4️⃣ Import GPG key
|
||||
# 1️⃣5️⃣ Import GPG key for signing
|
||||
- name: Import GPG key
|
||||
run: |
|
||||
echo "$GPG_PRIVATE_KEY" | gpg --batch --import
|
||||
@@ -120,7 +124,7 @@ jobs:
|
||||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
|
||||
|
||||
# 1️⃣5️⃣ Sign Linux artifacts
|
||||
# 1️⃣6️⃣ Sign Linux artifacts
|
||||
- name: Sign Linux artifacts
|
||||
run: |
|
||||
for f in src-tauri/target/release/bytechat-desktop \
|
||||
@@ -132,7 +136,7 @@ jobs:
|
||||
env:
|
||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||
|
||||
# 1️⃣6️⃣ Sign Windows exe
|
||||
# 1️⃣7️⃣ Sign Windows exe
|
||||
- name: Sign Windows exe
|
||||
run: |
|
||||
exe=src-tauri/target/x86_64-pc-windows-gnu/release/bytechat-desktop.exe
|
||||
@@ -141,7 +145,7 @@ jobs:
|
||||
env:
|
||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||
|
||||
# 1️⃣7️⃣ Upload Android APKs
|
||||
# 1️⃣8️⃣ Upload Android APKs
|
||||
- name: Upload Android APK
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
@@ -150,7 +154,7 @@ jobs:
|
||||
src-tauri/gen/android/app/build/outputs/apk/debug/app-debug.apk
|
||||
src-tauri/gen/android/app/build/outputs/apk/release/app-release.apk
|
||||
|
||||
# 1️⃣8️⃣ Upload Linux packages
|
||||
# 1️⃣9️⃣ Upload Linux packages
|
||||
- name: Upload Linux packages
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
@@ -164,7 +168,7 @@ jobs:
|
||||
src-tauri/target/release/bundle/rpm/*.asc
|
||||
key/bytechat-public.gpg
|
||||
|
||||
# 1️⃣9️⃣ Upload Windows exe + signature
|
||||
# 2️⃣0️⃣ Upload Windows exe + signature
|
||||
- name: Upload Windows exe
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user