Skip to content

Fixed sdk path (uppercase).#13

Merged
digitalnomad91 merged 1 commit intomainfrom
feature/local-build-workflow-setup
Feb 26, 2026
Merged

Fixed sdk path (uppercase).#13
digitalnomad91 merged 1 commit intomainfrom
feature/local-build-workflow-setup

Conversation

@digitalnomad91
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings February 26, 2026 02:16
@digitalnomad91 digitalnomad91 merged commit 4eb0263 into main Feb 26, 2026
3 checks passed
@digitalnomad91 digitalnomad91 deleted the feature/local-build-workflow-setup branch February 26, 2026 02:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the self-hosted Android build workflow to use an ANDROID_HOME path with Sdk capitalization, aligning with common Android Studio defaults on case-sensitive filesystems.

Changes:

  • Change ANDROID_HOME from .../Android/sdk to .../Android/Sdk in the SDK verification step.
  • Change ANDROID_HOME from .../Android/sdk to .../Android/Sdk in the Gradle build step.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 114 to 118
# 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
Copy link

Copilot AI Feb 26, 2026

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 Sdk vs sdk). Prefer deriving from $HOME (e.g., $HOME/Android/Sdk) and/or using an existing ANDROID_SDK_ROOT/ANDROID_HOME if already set, with a fallback check for both common casings before failing.

Copilot uses AI. Check for mistakes.
- name: '🏗️ Build Release APK with Gradle'
run: |
export ANDROID_HOME="/home/digitalnomad91/Android/sdk"
export ANDROID_HOME="/home/digitalnomad91/Android/Sdk"
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step re-exports ANDROID_HOME with another hard-coded absolute path, which duplicates the earlier configuration and can silently drift if one location is changed later. Since ANDROID_HOME is already written to $GITHUB_ENV in the prior step, use that value here (or remove this line) to keep the workflow single-sourced.

Suggested change
export ANDROID_HOME="/home/digitalnomad91/Android/Sdk"

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants