Skip to content

[ci] Install maui-android workload on Linux for Android test pipeline#34127

Closed
Copilot wants to merge 2 commits intofix-android-run-linuxfrom
copilot/sub-pr-33997-again
Closed

[ci] Install maui-android workload on Linux for Android test pipeline#34127
Copilot wants to merge 2 commits intofix-android-run-linuxfrom
copilot/sub-pr-33997-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 19, 2026

Description of Change

The Android test pipeline now runs on Linux infrastructure (AndroidPoolLinux), but the workload installation step was attempting to install the full maui workload, which includes iOS/macCatalyst components that cannot be installed on Linux, causing build failures.

Changes:

  • Modified src/DotNet/DotNet.csproj Install target to conditionally install workloads based on OS:
    • Linux: Install maui-android workload only
    • macOS/Windows: Install full maui workload
  • Follows existing pattern from _InstallWorkloadPacks target (lines 186-189) which already excludes iOS/macCatalyst/macOS workloads on Linux

Example:

<!-- Before: Always installed full maui workload -->
<_LocalWorkloadIds Include="maui" />

<!-- After: Platform-specific workload installation -->
<_LocalWorkloadIds Include="maui-android" Condition="$([MSBuild]::IsOSPlatform('linux'))" />
<_LocalWorkloadIds Include="maui" Condition="!$([MSBuild]::IsOSPlatform('linux'))" />

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: rmarinho <1235097+rmarinho@users.noreply.github.com>
Copilot AI changed the title [WIP] Update CI pipeline to run Android on Linux pool [ci] Install maui-android workload on Linux for Android test pipeline Feb 19, 2026
Copilot AI requested a review from rmarinho February 19, 2026 11:46
@rmarinho rmarinho closed this Feb 20, 2026
@rmarinho rmarinho deleted the copilot/sub-pr-33997-again branch February 20, 2026 14:52
@github-actions github-actions bot locked and limited conversation to collaborators Mar 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants