Skip to content
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

[release/6.0.1xx-preview4] [CI] Detect if we are running a vm and set the vendor. #11473

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tools/devops/automation/templates/mac/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ steps:
ioreg -l | grep -e Manufacturer -e 'Vendor Name'
displayName: 'Dump Hardware'

- bash: |
vmware=$(ioreg -l | grep -e Manufacturer -e 'Vendor Name' | grep -e 'VMWare' | wc -l)
if [[ $vmare -gt 0 ]]; then
echo "##vso[task.setvariable variable=VM_VENDOR]VMWare"
fi

virtualbox=$(ioreg -l | grep -e Manufacturer -e 'Vendor Name' | grep -e 'VirtualBox' | wc -l)
if [[ $virtualbox -gt 0 ]]; then
echo "##vso[task.setvariable variable=VM_VENDOR]VirtualBox"
fi

displayName: 'Set VM Vendor'

- bash: $(System.DefaultWorkingDirectory)/xamarin-macios/tools/devops/automation/scripts/bash/clean-bot.sh
displayName: 'Clean bot'
env:
Expand Down