Skip to content
This repository was archived by the owner on Apr 6, 2024. It is now read-only.

Commit 8e003e9

Browse files
authored
Merge pull request #74 from pascalberger/feature/ubuntu-build-fix
Fix build on Ubuntu
2 parents 808f727 + 5a6c583 commit 8e003e9

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

azure-pipelines.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
- powershell: |
1818
$ENV:CAKE_SKIP_GITVERSION=([string]::IsNullOrEmpty($ENV:SYSTEM_PULLREQUEST_PULLREQUESTID) -eq $False).ToString()
1919
.\build.ps1 -target Buildserver
20-
exit $LASTEXITCODE
20+
exit $LASTEXITCODE
2121
displayName: 'Cake Build'
2222
- job: macOS
2323
pool:
2424
vmImage: 'macOS-10.14'
2525
steps:
2626
# To manually select a Xamarin SDK version on the Hosted macOS agent, enable this script with the SDK version you want to target
27-
# https://go.microsoft.com/fwlink/?linkid=871629
27+
# https://go.microsoft.com/fwlink/?linkid=871629
2828
- bash: |
2929
sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_18_1
3030
displayName: 'Select Mono 5.18.1'
@@ -35,6 +35,15 @@ jobs:
3535
pool:
3636
vmImage: 'ubuntu-16.04'
3737
steps:
38+
# Use Mono 6.6.0 until Cake.Recipe is compatible with Cake 0.37.0 which fixes this issue
3839
- bash: |
39-
./build.sh --target Buildserver
40+
sudo apt-get remove mono-complete mono-devel mono-gac mono-runtime-common monodoc-manual \
41+
&& sudo apt-get autoremove \
42+
&& echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial/snapshots/6.6.0.161 main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list \
43+
&& sudo apt-get update \
44+
&& sudo apt-get install -y --no-install-recommends mono-complete \
45+
&& mono --version
46+
displayName: 'Downgrade Mono to 6.6.0'
47+
- bash: |
48+
./build.sh --verbosity diagnostic
4049
displayName: 'Cake Build'

0 commit comments

Comments
 (0)