File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 6161 retention-days : 30
6262
6363 android :
64- name : Android APK (Capacitor )
64+ name : Android APK (Tauri )
6565 runs-on : ubuntu-latest
6666 steps :
6767 - name : Checkout
@@ -79,11 +79,21 @@ jobs:
7979 - name : Setup Android SDK
8080 uses : android-actions/setup-android@v3
8181
82- - name : Setup Java 11
82+ - name : Setup Java 21
8383 uses : actions/setup-java@v5
8484 with :
8585 distribution : temurin
86- java-version : ' 11'
86+ java-version : ' 21'
87+
88+ - name : Install Rust toolchain
89+ uses : dtolnay/rust-toolchain@stable
90+ with :
91+ targets : aarch64-linux-android,armv7-linux-androideabi,i686-linux-android,x86_64-linux-android
92+
93+ - name : Setup Rust cache
94+ uses : Swatinem/rust-cache@v2
95+ with :
96+ workspaces : src-tauri
8797
8898 - name : Cache Gradle
8999 uses : actions/cache@v4
@@ -97,15 +107,15 @@ jobs:
97107
98108 - name : Build Android release (unsigned)
99109 run : |
100- yarn android:release
110+ yarn tauri:build:android
101111
102112 - name : Upload APK/AAB artifacts
103113 uses : actions/upload-artifact@v4
104114 with :
105115 name : betaflight-android
106116 path : |
107- android/app/build/outputs/apk/release/*.apk
108- android/app/build/outputs/bundle/release /*.aab
117+ src-tauri/gen/ android/app/build/outputs/apk/universal /release/*.apk
118+ src-tauri/gen/ android/app/build/outputs/bundle/universalRelease /*.aab
109119 if-no-files-found : warn
110120 retention-days : 30
111121
You can’t perform that action at this time.
0 commit comments