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

ci: Add validation for more macOS and netcore versions #220

Merged
merged 1 commit into from
Apr 2, 2020
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
63 changes: 60 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
trigger:
trigger:
- master
- rel/*

Expand Down Expand Up @@ -59,13 +59,32 @@ jobs:
pool:
vmImage: windows-2019

strategy:
matrix:
NETCORE_DEFAULT:
BUILD_NETCORE_VERSION: ''
NETCORE_3_1:
BUILD_NETCORE_VERSION: '3.1.x'
NETCORE_3_0:
BUILD_NETCORE_VERSION: '3.0.x'
NETCORE_2_2:
BUILD_NETCORE_VERSION: '2.2.x'

variables:
BuildConfiguration: Release
TMPDIR: $(Build.ArtifactStagingDirectory)
DisableNerdBank: true
PackageVersion: 42.42.42

steps:

- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: $(BUILD_NETCORE_VERSION)
installationPath: $(Agent.ToolsDirectory)/dotnet

- powershell: |
mkdir $(Build.ArtifactStagingDirectory)\Packages -Force
displayName: Create packages temp folder
Expand Down Expand Up @@ -94,17 +113,40 @@ jobs:
displayName: MSBuild Test Projects 2

- job: Linux
container: nventive/wasm-build:1.4.1
container: unoplatform/wasm-build:2.0
pool:
vmImage: 'ubuntu-latest'

strategy:
matrix:
# Build fails with
# /__t/dotnet/sdk/3.1.201/Sdks/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.props(208,3):
# error MSB4019: The imported project "/__t/dotnet/sdk/3.1.201/Sdks/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.WinFX.props" was not
# found. Confirm that the expression in the Import declaration "Microsoft.WinFX.props" is correct, and that the file exists on disk.
#
# NETCORE_3_1:
# BUILD_NETCORE_VERSION: '3.1.x'

NETCORE_3_0:
BUILD_NETCORE_VERSION: '3.0.x'
NETCORE_2_2:
BUILD_NETCORE_VERSION: '2.2.x'

variables:
BuildConfiguration: Release
TMPDIR: /tmp
DisableNerdBank: true
PackageVersion: 42.42.42

steps:

- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: $(BUILD_NETCORE_VERSION)
installationPath: $(Agent.ToolsDirectory)/dotnet

- script: |
mkdir $TMPDIR/Packages
displayName: Create packages temp folder
Expand Down Expand Up @@ -133,13 +175,27 @@ jobs:

strategy:
matrix:
Xamarin_Latest:
PoolImage: macOS-latest

Xamarin_6_6_0:
XamarinVersion: 6_6_0
PoolImage: macOS-10.15

Xamarin_6_4_0:
XamarinVersion: 6_4_0
PoolImage: macOS-10.15

Xamarin_5_16_0:
XamarinVersion: 5_16_0
PoolImage: macOS-10.14

Xamarin_5_12_0:
XamarinVersion: 5_12_0
PoolImage: macOS-10.14

pool:
vmImage: 'macOS-latest'
vmImage: $(PoolImage)

variables:
BuildConfiguration: Release
Expand All @@ -151,6 +207,7 @@ jobs:

- bash: /bin/bash -c "sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh $(XamarinVersion)"
displayName: Select Xamarin Version
condition: and(succeeded(), ne(variables['XamarinVersion'], ''))

- script: |
mkdir $TMPDIR/Packages
Expand Down