Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit fe2166d

Browse files
authored
We can't use Cake v1.0.0 as there are breaks (#1099)
1 parent 3b99467 commit fe2166d

File tree

5 files changed

+9
-17
lines changed

5 files changed

+9
-17
lines changed

.ci/build-manifest.cake

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#addin nuget:?package=Cake.XCode&version=4.1.0
1+
#addin nuget:?package=Cake.XCode&version=4.2.0
22
#addin nuget:?package=Cake.Yaml&version=3.1.0&loadDependencies=true
33
#addin nuget:?package=Cake.Json&version=4.0.0&loadDependencies=true
44
#addin nuget:?package=Xamarin.Nuget.Validator&version=1.1.1
@@ -122,7 +122,7 @@ if (FORCE_BUILD) {
122122
foreach (var buildGroup in BUILD_GROUPS) {
123123
// If ignore triggers for the platform this is running on, do not add the group even if the trigger is matched
124124
if ((buildGroup.IgnoreTriggersOnLinux && IsRunningOnLinux ()) ||
125-
(buildGroup.IgnoreTriggersOnMac && IsRunningOnMac ()) ||
125+
(buildGroup.IgnoreTriggersOnMac && IsRunningOnMacOs ()) ||
126126
(buildGroup.IgnoreTriggersOnWindows && IsRunningOnWindows ()))
127127
continue;
128128

@@ -202,7 +202,7 @@ if (BUILD_NAMES.Length > 0) {
202202

203203
// Remove the builds that cannot run on this platform
204204
groupsToBuild = groupsToBuild
205-
.Where (bg => (bg.BuildOnWindows && IsRunningOnWindows ()) || (bg.BuildOnMac && IsRunningOnMac ()) || (bg.BuildOnLinux && IsRunningOnLinux ()))
205+
.Where (bg => (bg.BuildOnWindows && IsRunningOnWindows ()) || (bg.BuildOnMac && IsRunningOnMacOs ()) || (bg.BuildOnLinux && IsRunningOnLinux ()))
206206
.ToList ();
207207
if (groupsToBuild.Count > 0) {
208208
Information ("Removed the items that cannot build on this platform, leaving:" + Environment.NewLine +
@@ -223,7 +223,7 @@ if (groupsToBuild.Count == 0) {
223223
// Make a note if nothing changed...
224224
Warning ("No changed files affected any of the paths from the manifest.yaml.");
225225
} else {
226-
if (IsRunningOnMac ()) {
226+
if (IsRunningOnMacOs ()) {
227227
// Make sure cocoapods are up to date if needed
228228
if (podRepoUpdate != PodRepoUpdate.NotRequired) {
229229
if (podRepoUpdate == PodRepoUpdate.Forced)
@@ -268,7 +268,7 @@ if (groupsToBuild.Count == 0) {
268268
targets = BUILD_TARGETS.ToList ();
269269
else if (IsRunningOnWindows ())
270270
targets = buildGroup.WindowsBuildTargets.ToList ();
271-
else if (IsRunningOnMac ())
271+
else if (IsRunningOnMacOs ())
272272
targets = buildGroup.MacBuildTargets.ToList ();
273273
else if (IsRunningOnLinux ())
274274
targets = buildGroup.LinuxBuildTargets.ToList ();
@@ -418,12 +418,12 @@ public class BuildGroup {
418418
public override string ToString () => Name;
419419
}
420420

421-
bool IsRunningOnMac () {
421+
bool IsRunningOnMacOs () {
422422
return System.Environment.OSVersion.Platform == PlatformID.MacOSX || MacPlatformDetector.IsMac.Value;
423423
}
424424

425425
bool IsRunningOnLinux () {
426-
return IsRunningOnUnix () && !IsRunningOnMac ();
426+
return IsRunningOnUnix () && !IsRunningOnMacOs ();
427427
}
428428

429429
internal static class MacPlatformDetector {

.ci/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ parameters:
2323
mono: 'Latest' # the version of mono to use
2424
xcode: '12.3' # the version of Xcode to use
2525
dotnet: '3.1.302' # the version of .NET Core to use
26-
cake: '0.38.4' # the version of Cake to use
26+
cake: '0.38.5' # the version of Cake to use
2727
apiTools: '1.1.0-preview.1' # the version of the api-tools CLI to use
2828
xharness: '1.0.0-prerelease.20602.1'
2929
tools: [] # a list of any additional .NET Core tools needed

azure-pipelines.yml

-4
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,10 @@ jobs:
4040
- JakeWharton.Picasso2OkHttp3Downloader
4141
preBuildSteps:
4242
- pwsh: |
43-
dotnet tool uninstall --global Cake.Tool
44-
dotnet tool install --global Cake.Tool
4543
dotnet tool install --global boots
4644
boots https://aka.ms/xamarin-android-commercial-d16-8-macos
4745
condition: eq(variables['System.JobName'], 'macos')
4846
- pwsh: |
49-
dotnet tool uninstall --global Cake.Tool
50-
dotnet tool install --global Cake.Tool
5147
dotnet tool install --global boots
5248
boots https://aka.ms/xamarin-android-commercial-d16-8-windows
5349
condition: eq(variables['System.JobName'], 'windows')

build.cake

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var VERBOSITY = Argument ("v", Argument ("verbosity", Verbosity.Normal));
22
var CONFIGURATION = Argument ("c", Argument ("configuration", "Release"));
33

44
var BUILD_NAMES = Argument ("names", Argument ("name", ""));
5-
var BUILD_TARGETS = Argument ("build-targets", Argument ("targets", Argument ("target", "Default")));
5+
var BUILD_TARGETS = Argument ("build-targets", Argument ("targets", Argument ("target", "ci")));
66

77
var FORCE_BUILD = Argument ("force", Argument ("forcebuild", Argument ("force-build", false)));
88
var POD_REPO_UPDATE = Argument ("repo-update", Argument ("pod-repo-update", false));

manifest.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -680,10 +680,6 @@
680680
BuildScript: ./XPlat/Mono.Terminal/build.cake
681681
TriggerPaths: [ XPlat/Mono.Terminal ]
682682
MacBuildTargets: [ nuget, samples ]
683-
- Name: Gigya
684-
BuildScript: ./XPlat/Gigya/build.cake
685-
TriggerPaths: [ XPlat/Gigya ]
686-
MacBuildTargets: [ nuget, samples ]
687683
- Name: Mono.Options
688684
BuildScript: ./XPlat/Mono.Options/build.cake
689685
TriggerPaths: [ XPlat/Mono.Options ]

0 commit comments

Comments
 (0)