Fix Android CI: use rustup in PATH, remove redundant init step
Some checks failed
Build / build-windows (push) Successful in 4m8s
Build / build-android (push) Failing after 1m3s
Build / build-linux (push) Successful in 8m30s

This commit is contained in:
2026-01-23 22:16:40 +11:00
parent 4eae55476f
commit e4ec0bd611

View File

@@ -140,17 +140,15 @@ jobs:
working-directory: ./cinny
run: npm install
- name: Initialize Android project
run: npm run tauri android init
- name: Build Android APK
shell: cmd
shell: pwsh
run: |
set RUSTUP_TOOLCHAIN=stable
$env:PATH = "$env:USERPROFILE\.cargo\bin;$env:PATH"
npm run tauri android build
env:
ANDROID_HOME: ${{ env.ANDROID_HOME }}
NDK_HOME: ${{ env.ANDROID_HOME }}/ndk/25.2.9519653
RUSTUP_TOOLCHAIN: stable
- name: Upload APK
uses: actions/upload-artifact@v3