-
Notifications
You must be signed in to change notification settings - Fork 0
Fixed sdk path (uppercase). #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -112,7 +112,7 @@ jobs: | |||
| - name: '🔍 Verify & Configure Android SDK' | ||||
| run: | | ||||
| # Force a fixed SDK location for the runner | ||||
| ANDROID_HOME="/home/digitalnomad91/Android/sdk" | ||||
| ANDROID_HOME="/home/digitalnomad91/Android/Sdk" | ||||
|
|
||||
| # Export for subsequent steps | ||||
| echo "ANDROID_HOME=$ANDROID_HOME" >> $GITHUB_ENV | ||||
|
|
@@ -141,7 +141,7 @@ jobs: | |||
|
|
||||
| - name: '🏗️ Build Release APK with Gradle' | ||||
| run: | | ||||
| export ANDROID_HOME="/home/digitalnomad91/Android/sdk" | ||||
| export ANDROID_HOME="/home/digitalnomad91/Android/Sdk" | ||||
|
||||
| export ANDROID_HOME="/home/digitalnomad91/Android/Sdk" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ANDROID_HOME is hard-coded to a specific user home path. This makes the workflow brittle on any self-hosted runner where the account/home directory differs (and it also changes behavior depending on whether the SDK dir is
Sdkvssdk). Prefer deriving from$HOME(e.g.,$HOME/Android/Sdk) and/or using an existingANDROID_SDK_ROOT/ANDROID_HOMEif already set, with a fallback check for both common casings before failing.