Skip to content

[release/11.0.1xx-preview2] [ci] Run android on MAUI-Dnceng#34200

Closed
github-actions[bot] wants to merge 3 commits intorelease/11.0.1xx-preview2from
backport/pr-33997-to-release/11.0.1xx-preview2
Closed

[release/11.0.1xx-preview2] [ci] Run android on MAUI-Dnceng#34200
github-actions[bot] wants to merge 3 commits intorelease/11.0.1xx-preview2from
backport/pr-33997-to-release/11.0.1xx-preview2

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Backport of #33997 to release/11.0.1xx-preview2

/cc @PureWeen @rmarinho

rmarinho and others added 3 commits February 23, 2026 22:46
…port (#34046)

The `mac_runandroid_tests` stage was moved to Linux pools but failed due
to two issues: workload installation attempted to install the full
`maui` workload (which includes iOS/macOS dependencies unavailable on
Linux), and KVM was not enabled for Android emulator support.

**Changes:**
- Modified `src/DotNet/DotNet.csproj` `Install` target to conditionally
install `maui-android` on Linux, `maui` on other platforms
- Aligns with existing pattern in `_InstallWorkloadPacks` target where
iOS/macOS workloads are excluded on Linux
- Added KVM enablement step to `eng/pipelines/arcade/setup-test-env.yml`
for Android integration tests on Linux
  - Creates udev rules to allow KVM access for Android emulators
- Matches pattern used in `device-tests-steps.yml` and
`ui-tests-steps.yml`

```xml
<ItemGroup>
  <!-- On Linux, install maui-android instead of maui to avoid iOS/macOS dependencies -->
  <_LocalWorkloadIds Include="maui-android" Condition="$([MSBuild]::IsOSPlatform('linux'))" />
  <_LocalWorkloadIds Include="maui" Condition="!$([MSBuild]::IsOSPlatform('linux'))" />
</ItemGroup>
```

<!-- START COPILOT CODING AGENT TIPS -->
Move the duplicated KVM enablement block into
eng/pipelines/common/enable-kvm.yml and reference it from
setup-test-env.yml, ui-tests-steps.yml, and device-tests-steps.yml.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@PureWeen PureWeen closed this Feb 27, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 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.

3 participants