Skip to content

Commit

Permalink
Refactor Android SDK setup in workflow configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackRam-oss committed Nov 26, 2024
1 parent 9e8c6ec commit a754622
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ jobs:
unzip commandlinetools-linux-7583922_latest.zip -d $HOME/Android
export ANDROID_HOME="$HOME/Android/Sdk"
echo 'y' | sdkmanager --update --sdk_root=$ANDROID_HOME
export NDK_HOME="$ANDROID_NDK_HOME"
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

# echo 'y' | sdkmanager --sdk_root=$ANDROID_HOME --install "ndk;21.4.7075529"
# rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
# export NDK_HOME="$ANDROID_HOME/ndk/$(ls -1 $ANDROID_HOME/ndk)"
Expand Down Expand Up @@ -103,8 +99,11 @@ jobs:
- name: init android tauri
if: matrix.name == 'Android' # This must match the platform value defined above.
run: |
npm run tauri android init
npm run tauri icon public/pwa-512x512.png
export NDK_HOME="$ANDROID_NDK_HOME"
npm run tauri android init
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- uses: tauri-apps/tauri-action@v0
env:
Expand Down

0 comments on commit a754622

Please sign in to comment.