Skip to content

Commit c8be3ef

Browse files
authored
Try to fix build on Azure (#1767)
* Try to fix build on Azure * Fix AzureCLI inputs * Try Bash task instead
1 parent 2dc7dfe commit c8be3ef

1 file changed

Lines changed: 15 additions & 24 deletions

File tree

Build/steps.yml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ steps:
3838

3939
# Set Mono version on macOS
4040
- ${{ if eq(parameters.os, 'macOS') }}:
41-
- task: ms-devlabs.utilitytasks.task-Shellpp.Shell++@0
41+
- task: Bash@3
4242
displayName: Set Mono Version
4343
inputs:
44-
type: InlineScript
44+
targetType: inline
4545
script: |
4646
# use Mono 6.4.0 version
4747
SYMLINK=6.4.0
@@ -52,31 +52,22 @@ steps:
5252
5353
# Install mono when running on Linux
5454
- ${{ if eq(parameters.os, 'Linux') }}:
55-
- task: ms-devlabs.utilitytasks.task-Shellpp.Shell++@0
56-
displayName: Version Information
55+
- task: Bash@3
56+
displayName: Install tools
5757
inputs:
58-
type: InlineScript
58+
targetType: inline
5959
script: |
60-
# Testing and packaging tools
61-
sudo apt-get -yq install mono-vbnc dos2unix fakeroot
60+
sudo apt-get -yq install mono-vbnc dos2unix
6261
63-
# Dump some info about the tools
64-
mono --version
65-
msbuild /version
66-
dotnet --info
67-
df -Th
68-
69-
# Dump version info on macOS
70-
- ${{ if eq(parameters.os, 'macOS') }}:
71-
- task: ms-devlabs.utilitytasks.task-Shellpp.Shell++@0
72-
displayName: Version Information
73-
inputs:
74-
type: InlineScript
75-
script: |
76-
# Dump some info about the tools
77-
mono --version
78-
msbuild /version
79-
dotnet --info
62+
# Dump version info
63+
- task: PowerShell@2
64+
displayName: Version Information
65+
inputs:
66+
targetType: inline
67+
script: |
68+
dotnet --info
69+
try { msbuild -version } catch { }
70+
try { mono --version } catch { }
8071
8172
- powershell: ./make.ps1
8273
displayName: Build

0 commit comments

Comments
 (0)