Maui/azure-pipelines.yml

340 строки
17 KiB
YAML
Исходник Постоянная ссылка Обычный вид История

Add first draft of a build pipeline (#1) * Create azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Create vs2019.csx * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Delete vs2019.csx * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add icon * Really add icon * Fix version number * Build sample * Revert "Build sample" This reverts commit 91a3adccd5a31b63fa59aeee569f7d96955a136c. * Set version to start at 1 * Set right target versions * Update CommunityToolkit.Maui.csproj * Create CommunityToolkit.Maui.sln * Revert "Create CommunityToolkit.Maui.sln" This reverts commit 07a2fcac3280891690dc87dad35e6e33da80b5d3. * Update CommunityToolkit.Maui.csproj * Remove OS Numbers + App-Specific Settings Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-17 23:20:03 +03:00
variables:
CurrentSemanticVersionBase: '1.0.0'
PreviewNumber: $[counter(variables['CurrentSemanticVersionBase'], 1001)]
CurrentSemanticVersion: '$(CurrentSemanticVersionBase)-preview$(PreviewNumber)'
NugetPackageVersion: '$(CurrentSemanticVersion)'
NugetPackageVersionMediaElement: '$(CurrentSemanticVersion)'
NugetPackageVersionMaps: '$(CurrentSemanticVersion)'
TOOLKIT_NET_VERSION: '7.0.200'
LATEST_NET_VERSION: '7.0.x'
PathToLibrarySolution: 'src/CommunityToolkit.Maui.sln'
PathToSamplesSolution: 'samples/CommunityToolkit.Maui.Sample.sln'
Add first draft of a build pipeline (#1) * Create azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Create vs2019.csx * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Delete vs2019.csx * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add icon * Really add icon * Fix version number * Build sample * Revert "Build sample" This reverts commit 91a3adccd5a31b63fa59aeee569f7d96955a136c. * Set version to start at 1 * Set right target versions * Update CommunityToolkit.Maui.csproj * Create CommunityToolkit.Maui.sln * Revert "Create CommunityToolkit.Maui.sln" This reverts commit 07a2fcac3280891690dc87dad35e6e33da80b5d3. * Update CommunityToolkit.Maui.csproj * Remove OS Numbers + App-Specific Settings Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-17 23:20:03 +03:00
PathToCommunityToolkitCsproj: 'src/CommunityToolkit.Maui/CommunityToolkit.Maui.csproj'
Project reorganization (#214) * Created Core project * Added snackbar implementation * Configured csproj values * Done with snackbar, toast, popupview * Behaviors * more csproj fixes * Added converters * docs and png * unit test <3 * more csproj fixes * checkpoint * Created new projects with better names * removed old Core project * update sample namespace * updated project reference on unit test * Deleted old MCT project * deleted Controls folder * deleted dumb file * deleted test method * reverte test change * fixed CommunityToolkit.Maui.sln * fix the build? * fixed csproj path * moved core folder * Moved CommunityToolkit.Maui.Control and renamed it to CommunityToolkit.Maui * fixed references * Fixed sample and unit test references * fixed pipeline path * fixed src solution * Cleaned up AppBuilder and moved base classes to core * Remove `.Result` * Remove Solution Folders * Remove Solution Folders * Update SnackBar.shared.cs * Delete AssemblyInfo.shared.cs * Add `UseMauiCommunityToolkitCore`, Move `Microsoft.Maui.Controls` Out of `CommunityToolkit.Maui.Core` * Move Views to `CommunityToolkit.Maui.Core` * Consolidate Enums * Add Missing XML Documentation * Update CommunityToolkit.Maui.Sample.csproj * Add NuGet Package `PropertyGroup` * Update azure-pipelines.yml * Remove duplicate `ProjectReference` * Fix XML Warnings * `dotnet format` * Match .NET MAUI Windows Target Framework * Add `InternalsVisibleTo("CommunityToolkit.Maui.UnitTests")]` * `dotnet format` * Add NuGet Package Icon * Remove Duplicate PaddedLabel, Make `PaddedLabel` Public * use `nfloat` instead of `double` for ``PaddedLabel` ctor * Add `CS1574` to `<WarningsAsErrors>` <!--CS1574: XML comment has cref attribute that could not be resolved--> * Add `InternalsVisibleTo` for `CommunityToolkit.Maui.UnitTests` * Update XML * Delete `InternalsVisibleTo` Assembly Attribute * Add `builder` description * Combine Single-Use Enum * Move `SnackbarView` to `CommunittyToolkit.Maui.Core`, Require `nfloat` in ctor * Remove nullable Properties in `ToastView` * Propagate `nfloat` to `SnackbarView.macios.cs` and `ToastView.macios.cs` ctors * Create `UIViewExtensions.macios.cs` & `PopupVisualOptions.macios.cs` * Removed `param`s * Fix Build Errors for .NET MAUI Preview 11 * Update for .NET MAUI Preview 11 * Update Unit Tests for .NET MAUI Preview 11 * Optimizations for ImpliedOrderGridBehavior Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmai.com> Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2021-12-15 01:29:31 +03:00
PathToCommunityToolkitCoreCsproj: 'src/CommunityToolkit.Maui.Core/CommunityToolkit.Maui.Core.csproj'
2023-01-20 23:55:06 +03:00
PathToCommunityToolkitMediaElementCsproj: 'src/CommunityToolkit.Maui.MediaElement/CommunityToolkit.Maui.MediaElement.csproj'
PathToCommunityToolkitMapsCsproj: 'src/CommunityToolkit.Maui.Maps/CommunityToolkit.Maui.Maps.csproj'
PathToCommunityToolkitSampleCsproj: 'samples/CommunityToolkit.Maui.Sample/CommunityToolkit.Maui.Sample.csproj'
Add first draft of a build pipeline (#1) * Create azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Create vs2019.csx * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Delete vs2019.csx * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add icon * Really add icon * Fix version number * Build sample * Revert "Build sample" This reverts commit 91a3adccd5a31b63fa59aeee569f7d96955a136c. * Set version to start at 1 * Set right target versions * Update CommunityToolkit.Maui.csproj * Create CommunityToolkit.Maui.sln * Revert "Create CommunityToolkit.Maui.sln" This reverts commit 07a2fcac3280891690dc87dad35e6e33da80b5d3. * Update CommunityToolkit.Maui.csproj * Remove OS Numbers + App-Specific Settings Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-17 23:20:03 +03:00
PathToCommunityToolkitUnitTestCsproj: 'src/CommunityToolkit.Maui.UnitTests/CommunityToolkit.Maui.UnitTests.csproj'
PathToCommunityToolkitAnalyzersCsproj: 'src/CommunityToolkit.Maui.Analyzers/CommunityToolkit.Maui.Analyzers.csproj'
2023-01-20 23:55:06 +03:00
PathToCommunityToolkitMediaElementAnalyzersCsproj: 'src/CommunityToolkit.Maui.MediaElement.Analyzers/CommunityToolkit.Maui.MediaElement.Analyzers.csproj'
PathToCommunityToolkitSourceGeneratorsCsproj: 'src/CommunityToolkit.Maui.SourceGenerators/CommunityToolkit.Maui.SourceGenerators.csproj'
PathToCommunityToolkitAnalyzersCodeFixCsproj: 'src/CommunityToolkit.Maui.Analyzers.CodeFixes/CommunityToolkit.Maui.Analyzers.CodeFixes.csproj'
2023-01-20 23:55:06 +03:00
PathToCommunityToolkitMediaElementAnalyzersCodeFixCsproj: 'src/CommunityToolkit.Maui.MediaElement.Analyzers.CodeFixes/CommunityToolkit.Maui.MediaElement.Analyzers.CodeFixes.csproj'
PathToCommunityToolkitAnalyzersUnitTestCsproj: 'src/CommunityToolkit.Maui.Analyzers.UnitTests/CommunityToolkit.Maui.Analyzers.UnitTests.csproj'
DotNetMauiRollbackFile: 'https://maui.blob.core.windows.net/metadata/rollbacks/7.0.59.json'
CommunityToolkitSampleApp_Xcode_Version: '14.3.0'
CommunityToolkitLibrary_Xcode_Version: '14.0.1'
trigger:
Add first draft of a build pipeline (#1) * Create azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Create vs2019.csx * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Delete vs2019.csx * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add icon * Really add icon * Fix version number * Build sample * Revert "Build sample" This reverts commit 91a3adccd5a31b63fa59aeee569f7d96955a136c. * Set version to start at 1 * Set right target versions * Update CommunityToolkit.Maui.csproj * Create CommunityToolkit.Maui.sln * Revert "Create CommunityToolkit.Maui.sln" This reverts commit 07a2fcac3280891690dc87dad35e6e33da80b5d3. * Update CommunityToolkit.Maui.csproj * Remove OS Numbers + App-Specific Settings Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-17 23:20:03 +03:00
branches:
include:
- main
- develop
tags:
include:
- '*'
paths:
exclude:
- README.md
Add first draft of a build pipeline (#1) * Create azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Create vs2019.csx * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Delete vs2019.csx * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add icon * Really add icon * Fix version number * Build sample * Revert "Build sample" This reverts commit 91a3adccd5a31b63fa59aeee569f7d96955a136c. * Set version to start at 1 * Set right target versions * Update CommunityToolkit.Maui.csproj * Create CommunityToolkit.Maui.sln * Revert "Create CommunityToolkit.Maui.sln" This reverts commit 07a2fcac3280891690dc87dad35e6e33da80b5d3. * Update CommunityToolkit.Maui.csproj * Remove OS Numbers + App-Specific Settings Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-17 23:20:03 +03:00
pr:
autoCancel: 'true'
Add first draft of a build pipeline (#1) * Create azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Create vs2019.csx * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Delete vs2019.csx * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add icon * Really add icon * Fix version number * Build sample * Revert "Build sample" This reverts commit 91a3adccd5a31b63fa59aeee569f7d96955a136c. * Set version to start at 1 * Set right target versions * Update CommunityToolkit.Maui.csproj * Create CommunityToolkit.Maui.sln * Revert "Create CommunityToolkit.Maui.sln" This reverts commit 07a2fcac3280891690dc87dad35e6e33da80b5d3. * Update CommunityToolkit.Maui.csproj * Remove OS Numbers + App-Specific Settings Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-17 23:20:03 +03:00
branches:
include:
- main
- develop
paths:
exclude:
- README.md
2022-10-20 23:04:38 +03:00
jobs:
- job: build_sample
displayName: Build Sample App using Latest .NET SDK
strategy:
matrix:
'Windows':
image: 'windows-latest'
'macOS':
image: 'macos-13'
Add first draft of a build pipeline (#1) * Create azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Create vs2019.csx * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Delete vs2019.csx * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add icon * Really add icon * Fix version number * Build sample * Revert "Build sample" This reverts commit 91a3adccd5a31b63fa59aeee569f7d96955a136c. * Set version to start at 1 * Set right target versions * Update CommunityToolkit.Maui.csproj * Create CommunityToolkit.Maui.sln * Revert "Create CommunityToolkit.Maui.sln" This reverts commit 07a2fcac3280891690dc87dad35e6e33da80b5d3. * Update CommunityToolkit.Maui.csproj * Remove OS Numbers + App-Specific Settings Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-17 23:20:03 +03:00
pool:
2022-10-20 23:04:38 +03:00
vmImage: $(image)
Add first draft of a build pipeline (#1) * Create azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Create vs2019.csx * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Delete vs2019.csx * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add icon * Really add icon * Fix version number * Build sample * Revert "Build sample" This reverts commit 91a3adccd5a31b63fa59aeee569f7d96955a136c. * Set version to start at 1 * Set right target versions * Update CommunityToolkit.Maui.csproj * Create CommunityToolkit.Maui.sln * Revert "Create CommunityToolkit.Maui.sln" This reverts commit 07a2fcac3280891690dc87dad35e6e33da80b5d3. * Update CommunityToolkit.Maui.csproj * Remove OS Numbers + App-Specific Settings Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-17 23:20:03 +03:00
steps:
- task: CmdLine@2
displayName: 'Set Xcode v$(CommunityToolkitSampleApp_Xcode_Version)'
condition: eq(variables['Agent.OS'], 'Darwin') # Only run this step on macOS
inputs:
script: echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'/Applications/Xcode_$(CommunityToolkitSampleApp_Xcode_Version).app;sudo xcode-select --switch /Applications/Xcode_$(CommunityToolkitSampleApp_Xcode_Version).app/Contents/Developer
- task: UseDotNet@2
displayName: 'Install Latest .NET SDK, v$(LATEST_NET_VERSION)'
inputs:
packageType: 'sdk'
2022-10-20 23:04:38 +03:00
version: '$(LATEST_NET_VERSION)'
2022-10-20 23:04:38 +03:00
- powershell: dotnet workload install maui
displayName: Install Latest .NET MAUI Workload
- pwsh: |
Invoke-WebRequest 'https://raw.githubusercontent.com/Samsung/Tizen.NET/main/workload/scripts/workload-install.ps1' -OutFile 'workload-install.ps1'
.\workload-install.ps1
displayName: Install Tizen Workload
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.Analyzers'
inputs:
script: 'dotnet build -c Release $(PathToCommunityToolkitAnalyzersCsproj)'
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.Analyzers.CodeFixes'
inputs:
script: 'dotnet build -c Release $(PathToCommunityToolkitAnalyzersCodeFixCsproj)'
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.MediaElement.Analyzers'
inputs:
script: 'dotnet build -c Release $(PathToCommunityToolkitMediaElementAnalyzersCsproj)'
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.MediaElement.Analyzers.CodeFixes'
inputs:
script: 'dotnet build -c Release $(PathToCommunityToolkitMediaElementAnalyzersCodeFixCsproj)'
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.SourceGenerators'
inputs:
script: 'dotnet build -c Release $(PathToCommunityToolkitSourceGeneratorsCsproj)'
2022-10-20 23:04:38 +03:00
# build sample
- task: CmdLine@2
displayName: 'Build Community Toolkit Sample'
inputs:
script: 'dotnet build $(PathToCommunityToolkitSampleCsproj) -c Release'
2022-10-20 23:04:38 +03:00
- job: build_library
displayName: Build Library
strategy:
matrix:
'Windows':
image: 'windows-latest'
'macOS':
image: 'macos-12'
pool:
vmImage: $(image)
steps:
# if this is a tagged build for CommunityToolkit.Maui, then update the version number
Add first draft of a build pipeline (#1) * Create azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Create vs2019.csx * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Delete vs2019.csx * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add icon * Really add icon * Fix version number * Build sample * Revert "Build sample" This reverts commit 91a3adccd5a31b63fa59aeee569f7d96955a136c. * Set version to start at 1 * Set right target versions * Update CommunityToolkit.Maui.csproj * Create CommunityToolkit.Maui.sln * Revert "Create CommunityToolkit.Maui.sln" This reverts commit 07a2fcac3280891690dc87dad35e6e33da80b5d3. * Update CommunityToolkit.Maui.csproj * Remove OS Numbers + App-Specific Settings Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-17 23:20:03 +03:00
- powershell: |
$buildSourceBranch = "$(Build.SourceBranch)"
$tagVersion = $buildSourceBranch.Substring($buildSourceBranch.LastIndexOf("/") + 1)
Write-Host("Branch = $buildSourceBranch, Version = $tagVersion");
Write-Host ("##vso[task.setvariable variable=NugetPackageVersion;]$tagVersion")
displayName: Set NuGet Version to Tag Number
condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags/'), not(endsWith(variables['Build.SourceBranch'], '-mediaelement'))) # Only run this step when a Tag has triggered the CI Pipeline
# if this is a tagged build for CommunityToolkit.Maui.MediaElement, then update the version number
- powershell: |
$buildSourceBranch = "$(Build.SourceBranch)"
$tagVersion = $buildSourceBranch.Substring($buildSourceBranch.LastIndexOf("/") + 1)
2023-01-21 16:36:44 +03:00
$tagVersion = $tagVersion.Substring(0, $tagVersion.LastIndexOf("-"))
Write-Host("Branch = $buildSourceBranch, Version = $tagVersion");
Write-Host ("##vso[task.setvariable variable=NugetPackageVersionMediaElement;]$tagVersion")
displayName: Set NuGet Version to Tag Number
condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags/'), endsWith(variables['Build.SourceBranch'], '-mediaelement')) # Only run this step when a Tag has triggered the CI Pipeline
# if this is a tagged build for CommunityToolkit.Maui.Maps, then update the version number
- powershell: |
$buildSourceBranch = "$(Build.SourceBranch)"
$tagVersion = $buildSourceBranch.Substring($buildSourceBranch.LastIndexOf("/") + 1)
$tagVersion = $tagVersion.Substring(0, $tagVersion.LastIndexOf("-"))
Write-Host("Branch = $buildSourceBranch, Version = $tagVersion");
Write-Host ("##vso[task.setvariable variable=NugetPackageVersionMaps;]$tagVersion")
displayName: Set NuGet Version to Tag Number
condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags/'), endsWith(variables['Build.SourceBranch'], '-maps')) # Only run this step when a Tag has triggered the CI Pipeline
# if this is a PR build, then update the version number
- powershell: |
$prNumber = $env:System_PullRequest_PullRequestNumber
$commitId = "$($env:System_PullRequest_SourceCommitId)".Substring(0, 7)
SnackBar (#5) * SnackBar/Toast * Fix DisplaySnackBarAsync Task never completes if another SnackBar appears, and completes before SnackBar action * Add samples * Update src/CommunityToolkit.Maui/Views/Snackbar/Options/SnackBarActionOptions.shared.cs Co-authored-by: Maksym Koshovyi <maximkoshevoi61@gmail.com> * Apply suggestions from code review Co-authored-by: Maksym Koshovyi <maximkoshevoi61@gmail.com> * Base Toast and Snackbar * Remove toast, update sample, remove ios * Add border, padding, fix tests, call events * remove base popup, fix anchor view * rebase on main, ios, macos snackbar * implement ITextStyle * documentation * set android action button font * Fix font * base tests * Add tests, IPlatformPopupExtensions * Remove unused tasks from pipeline * Add Windows * fix styles * Add padding, fix ios font size * Unsubscribe from events * Minor code style tweaks * Update azure-pipelines.yml * Update CommunityToolkit.Maui.Sample.csproj * `dotnet format` * Implement `IDisposable` Per .NET Guidelines https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-dispose * `dotnet format` * `SnackBar` -> `Snackbar` * `SnackBar` -> `Snackbar`, Windows * Update Snackbar Architecture * `dotnet format` * Refactor Snackbar Namespace to Alert` * Update SnackBar.shared.cs * Fix CR comments Update class names, fix padding on apple, attempt to fix winui * Fix behavior on Windows and ios * Add tests Co-authored-by: Maksym Koshovyi <maximkoshevoi61@gmail.com> Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2021-11-27 21:16:45 +03:00
$fullVersionString = "$(CurrentSemanticVersionBase)-build-$prNumber.$(Build.BuildId)+$commitId"
Write-Host("GitHub PR = $prNumber, Commit = $commitId");
Write-Host ("##vso[task.setvariable variable=NugetPackageVersion;]$fullVersionString")
Write-Host ("##vso[task.setvariable variable=NugetPackageVersionMediaElement;]$fullVersionString")
Write-Host "##vso[build.updatebuildnumber]$fullVersionString"
displayName: Set NuGet Version to PR Version
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'), eq(variables['build.reason'], 'PullRequest')) # Only run this step on Windows when a Pull Request has triggered the CI Pipeline
- task: CmdLine@2
displayName: 'Set Xcode v$(CommunityToolkitLibrary_Xcode_Version)'
condition: eq(variables['Agent.OS'], 'Darwin') # Only run this step on macOS
inputs:
script: echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'/Applications/Xcode_$(CommunityToolkitLibrary_Xcode_Version).app;sudo xcode-select --switch /Applications/Xcode_$(CommunityToolkitLibrary_Xcode_Version).app/Contents/Developer
2022-10-20 23:04:38 +03:00
- task: UseDotNet@2
displayName: Install .NET v$(TOOLKIT_NET_VERSION)
2022-10-20 23:04:38 +03:00
inputs:
packageType: 'sdk'
version: '$(TOOLKIT_NET_VERSION)'
- task: CmdLine@2
displayName: 'Install .NET MAUI Workload $(TOOLKIT_NET_VERSION)'
inputs:
script: dotnet workload install maui
2022-10-20 23:04:38 +03:00
- pwsh: |
Invoke-WebRequest 'https://raw.githubusercontent.com/Samsung/Tizen.NET/main/workload/scripts/workload-install.ps1' -OutFile 'workload-install.ps1'
.\workload-install.ps1
displayName: Install Tizen Workload
2022-10-20 23:04:38 +03:00
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.Analyzers'
inputs:
2022-10-20 23:04:38 +03:00
script: 'dotnet build -c Release $(PathToCommunityToolkitAnalyzersCsproj)'
2022-10-20 23:04:38 +03:00
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.Analyzers.CodeFixes'
inputs:
2022-10-20 23:04:38 +03:00
script: 'dotnet build -c Release $(PathToCommunityToolkitAnalyzersCodeFixCsproj)'
2023-01-20 23:55:06 +03:00
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.MediaElement.Analyzers'
inputs:
script: 'dotnet build -c Release $(PathToCommunityToolkitMediaElementAnalyzersCsproj)'
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.MediaElement.Analyzers.CodeFixes'
inputs:
script: 'dotnet build -c Release $(PathToCommunityToolkitMediaElementAnalyzersCodeFixCsproj)'
2022-10-20 23:04:38 +03:00
- task: CmdLine@2
displayName: 'Build CommunityToolkit.Maui.SourceGenerators'
inputs:
2022-10-20 23:04:38 +03:00
script: 'dotnet build -c Release $(PathToCommunityToolkitSourceGeneratorsCsproj)'
2022-10-20 23:04:38 +03:00
- task: CmdLine@2
displayName: 'Run CommunityToolkit.Maui.Analyzers.UnitTests'
inputs:
2022-10-20 23:04:38 +03:00
script: 'dotnet test $(PathToCommunityToolkitAnalyzersUnitTestCsproj) -c Release'
2022-10-20 23:04:38 +03:00
- task: CmdLine@2
displayName: 'Run CommunityToolkit.Maui.UnitTests'
inputs:
2022-10-20 23:04:38 +03:00
script: 'dotnet test $(PathToCommunityToolkitUnitTestCsproj) -c Release --settings ".runsettings" --collect "XPlat code coverage" --logger trx --results-directory $(Agent.TempDirectory)'
- task: PublishTestResults@2
condition: eq(variables['Agent.OS'], 'Windows_NT') # Only run this step on Windows
displayName: 'Publish Test Results'
inputs:
testResultsFormat: VSTest
testResultsFiles: '**/*.trx'
searchFolder: $(Agent.TempDirectory)
- task: PublishCodeCoverageResults@1
condition: eq(variables['Agent.OS'], 'Windows_NT') # Only run this step on Windows
displayName: 'Publish Code Coverage Results'
inputs:
codeCoverageTool: 'Cobertura'
summaryFileLocation: '$(Agent.TempDirectory)/**/coverage.cobertura.xml'
failIfCoverageEmpty: true
2022-10-20 23:04:38 +03:00
- task: CmdLine@2
displayName: 'Pack CommunityToolkit.Maui.Core NuGet'
Add first draft of a build pipeline (#1) * Create azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Create vs2019.csx * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Delete vs2019.csx * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add icon * Really add icon * Fix version number * Build sample * Revert "Build sample" This reverts commit 91a3adccd5a31b63fa59aeee569f7d96955a136c. * Set version to start at 1 * Set right target versions * Update CommunityToolkit.Maui.csproj * Create CommunityToolkit.Maui.sln * Revert "Create CommunityToolkit.Maui.sln" This reverts commit 07a2fcac3280891690dc87dad35e6e33da80b5d3. * Update CommunityToolkit.Maui.csproj * Remove OS Numbers + App-Specific Settings Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-17 23:20:03 +03:00
inputs:
2022-10-20 23:04:38 +03:00
script: 'dotnet pack $(PathToCommunityToolkitCoreCsproj) -c Release -p:PackageVersion=$(NugetPackageVersion)'
- task: CmdLine@2
displayName: 'Pack CommunityToolkit.Maui NuGet'
inputs:
2022-10-20 23:04:38 +03:00
script: 'dotnet pack $(PathToCommunityToolkitCsproj) -c Release -p:PackageVersion=$(NugetPackageVersion)'
2023-01-20 23:55:06 +03:00
- task: CmdLine@2
displayName: 'Pack CommunityToolkit.Maui.MediaElement NuGet'
inputs:
script: 'dotnet pack $(PathToCommunityToolkitMediaElementCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionMediaElement)'
2022-10-20 23:04:38 +03:00
- task: CmdLine@2
displayName: 'Pack CommunityToolkit.Maui.Maps NuGet'
inputs:
script: 'dotnet pack $(PathToCommunityToolkitMapsCsproj) -c Release -p:PackageVersion=$(NugetPackageVersionMaps)'
# check vulnerabilities
- powershell: |
dotnet list $(PathToLibrarySolution) package --vulnerable --include-transitive | findstr /S /c:"has the following vulnerable packages";
if ($LastExitCode -ne 1)
{
2022-10-20 23:04:38 +03:00
dotnet list $(PathToLibrarySolution) package --vulnerable --include-transitive;
exit 1;
}
exit 0;
displayName: 'Check Dependencies'
condition: eq(variables['Agent.OS'], 'Windows_NT') # Only run this step on Windows
# Copy all NuGet packages
- task: PowerShell@2
condition: and(eq(variables['Agent.OS'], 'Windows_NT'), not(startsWith(variables['Build.SourceBranch'], 'refs/tags/'))) # Only run this step on Windows and when it's not a tagged build
displayName: 'Copy NuGet Packages to Staging Directory'
inputs:
targetType: 'inline'
script: |
$source = ".\src"
$filter = "nupkg"
Get-ChildItem -Path $source -Recurse | Where-Object { $_.Extension -match $filter } | Copy-Item -Destination "$(Build.ArtifactStagingDirectory)"
pwsh: true
# Copy CommunityToolkit.Maui & CommunityToolkit.Maui.Core packages
- task: PowerShell@2
condition: and(eq(variables['Agent.OS'], 'Windows_NT'),
startsWith(variables['Build.SourceBranch'], 'refs/tags/'),
not(endsWith(variables['Build.SourceBranch'], '-mediaelement')),
not(endsWith(variables['Build.SourceBranch'], '-maps'))) # Only run this step on Windows and when it's a tagged build and the tag does NOT end with -mediaelement and does NOT end with -maps
displayName: 'Copy CommunityToolkit.Maui & CommunityToolkit.Maui.Core NuGet Packages to Staging Directory'
inputs:
targetType: 'inline'
script: |
$source = ".\src"
$filter = "CommunityToolkit.Maui.(Core.)*[0-9]+.[0-9]+.[0-9]+(-[a-zA-Z0-9]*)*.nupkg"
Get-ChildItem -Path $source -Recurse | Where-Object { $_.Name -match $filter } | Copy-Item -Destination "$(Build.ArtifactStagingDirectory)"
pwsh: true
# Copy CommunityToolkit.Maui.MediaElement package
- task: PowerShell@2
condition: and(eq(variables['Agent.OS'], 'Windows_NT'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), endsWith(variables['Build.SourceBranch'], '-mediaelement')) # Only run this step on Windows and when it's a tagged build and the tag ends with -mediaelement
displayName: 'Copy CommunityToolkit.Maui.MediaElement NuGet Package to Staging Directory'
inputs:
targetType: 'inline'
script: |
$source = ".\src"
$filter = "CommunityToolkit.Maui.MediaElement.[0-9]+.[0-9]+.[0-9]+(-[a-zA-Z0-9]*)*.nupkg"
Get-ChildItem -Path $source -Recurse | Where-Object { $_.Name -match $filter } | Copy-Item -Destination "$(Build.ArtifactStagingDirectory)"
pwsh: true
# Copy CommunityToolkit.Maui.Maps package
- task: PowerShell@2
condition: and(eq(variables['Agent.OS'], 'Windows_NT'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'), endsWith(variables['Build.SourceBranch'], '-maps')) # Only run this step on Windows and when it's a tagged build and the tag ends with -maps
displayName: 'Copy CommunityToolkit.Maui.Maps NuGet Package to Staging Directory'
inputs:
targetType: 'inline'
script: |
$source = ".\src"
$filter = "CommunityToolkit.Maui.Maps.[0-9]+.[0-9]+.[0-9]+(-[a-zA-Z0-9]*)*.nupkg"
Get-ChildItem -Path $source -Recurse | Where-Object { $_.Name -match $filter } | Copy-Item -Destination "$(Build.ArtifactStagingDirectory)"
pwsh: true
# Sign NuGet Packages
- task: PowerShell@2
displayName: Authenticode Sign Packages
inputs:
filePath: build/Sign-Package.ps1
env:
SignClientUser: $(SignClientUser)
SignClientSecret: $(SignClientSecret)
ArtifactDirectory: $(Build.ArtifactStagingDirectory)
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], ''))) # Only run this step on Windows when the CI Pipeline has not been triggered by a Pull Request and the NuGet Signing Certificate is valid
# Publish build artifacts
Add first draft of a build pipeline (#1) * Create azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Create vs2019.csx * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Delete vs2019.csx * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add icon * Really add icon * Fix version number * Build sample * Revert "Build sample" This reverts commit 91a3adccd5a31b63fa59aeee569f7d96955a136c. * Set version to start at 1 * Set right target versions * Update CommunityToolkit.Maui.csproj * Create CommunityToolkit.Maui.sln * Revert "Create CommunityToolkit.Maui.sln" This reverts commit 07a2fcac3280891690dc87dad35e6e33da80b5d3. * Update CommunityToolkit.Maui.csproj * Remove OS Numbers + App-Specific Settings Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-17 23:20:03 +03:00
- task: PublishBuildArtifacts@1
condition: eq(variables['Agent.OS'], 'Windows_NT') # Only run this step on Windows
displayName: 'Publish NuGets'
Add first draft of a build pipeline (#1) * Create azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Create vs2019.csx * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Delete vs2019.csx * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update CommunityToolkit.Maui.csproj * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add icon * Really add icon * Fix version number * Build sample * Revert "Build sample" This reverts commit 91a3adccd5a31b63fa59aeee569f7d96955a136c. * Set version to start at 1 * Set right target versions * Update CommunityToolkit.Maui.csproj * Create CommunityToolkit.Maui.sln * Revert "Create CommunityToolkit.Maui.sln" This reverts commit 07a2fcac3280891690dc87dad35e6e33da80b5d3. * Update CommunityToolkit.Maui.csproj * Remove OS Numbers + App-Specific Settings Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2021-08-17 23:20:03 +03:00
inputs:
artifactName: nuget
pathToPublish: '$(Build.ArtifactStagingDirectory)'