Skip to content

Commit

Permalink
fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
OldGodShen committed Jun 4, 2024
1 parent 6cb5d2a commit 8093ebc
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,11 @@ jobs:

- name: Set up NDK_HOME environment variable
if: matrix.platform == 'android'
run: echo "NDK_HOME=${{ runner.tool_cache }}/android-sdk/ndk/26.3.11579264" >> $env:GITHUB_ENV

- name: Check NDK directory
if: matrix.platform == 'android'
run: |
if (Test-Path "C:\\hostedtoolcache\\windows\\android-sdk\\ndk\\26.3.11579264") {
Write-Output "NDK directory exists."
} else {
Write-Output "NDK directory does not exist."
}
shell: pwsh
run: echo "NDK_HOME=$env:ANDROID_SDK_ROOT/android-sdk/ndk/26.3.11579264" >> $env:GITHUB_ENV

- name: Add Android SDK to PATH
if: matrix.platform == 'android'
run: echo "${{ runner.tool_cache }}/android-sdk/cmdline-tools/latest/bin" >> $env:GITHUB_PATH
run: echo "$env:ANDROID_SDK_ROOT/android-sdk/cmdline-tools/latest/bin" >> $env:GITHUB_PATH

- name: Install Android dependencies
if: matrix.platform == 'android'
Expand Down

0 comments on commit 8093ebc

Please sign in to comment.