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

[devops] Install .NET before trying to install simulators. #22272

Merged
merged 1 commit into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
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
8 changes: 6 additions & 2 deletions system-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -964,8 +964,12 @@ check_7z
check_objective_sharpie
check_old_simulators
if test -z "$IGNORE_DOTNET"; then
ok "Installed .NET SDKs:"
(IFS=$'\n'; for i in $(/usr/local/share/dotnet/dotnet --list-sdks); do log "$i"; done)
if test -f /usr/local/share/dotnet/dotnet; then
ok "Installed .NET SDKs:"
(IFS=$'\n'; for i in $(/usr/local/share/dotnet/dotnet --list-sdks); do log "$i"; done)
else
warn ".NET is not installed"
fi
fi

if test -z $FAIL; then
Expand Down
4 changes: 4 additions & 0 deletions tools/devops/automation/templates/tests/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ steps:
github_token: ${{ parameters.gitHubToken }}
timeoutInMinutes: 250

- task: UseDotNet@2
inputs:
version: 9.x

- bash: |
set -x
set -e
Expand Down
4 changes: 4 additions & 0 deletions tools/devops/automation/templates/windows/reserve-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ steps:
github_token: ${{ parameters.gitHubToken }}
timeoutInMinutes: 250

- task: UseDotNet@2
inputs:
version: 9.x

- bash: $(Build.SourcesDirectory)/$(BUILD_REPOSITORY_TITLE)/system-dependencies.sh --ignore-mono --ignore-visual-studio --ignore-mono --ignore-sharpie --ignore-shellcheck --ignore-yamllint --provision-simulators
displayName: 'Provision simulators'
timeoutInMinutes: 250
Expand Down