From 321ceeeec301bf826576df33c2177442b9928f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Sun, 17 Oct 2021 12:41:28 -0700 Subject: [PATCH] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 84 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..de400bd --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,84 @@ +name: $(date:yyyyMMdd)$(rev:-rr) + +resources: + repositories: + - repository: templates + endpoint: GitHub + type: github + name: wieslawsoltes/BuildTemplates + ref: refs/tags/v1.0.0 + +variables: + BuildConfiguration: 'Release' + BuildPlatform: 'Any CPU' + NetCoreSDK: '5.0.400' + PublishFramework: 'net5.0' + PublishProject: 'TypefaceUtil.Avalonia' + PublishRuntime: '' + +jobs: + - template: Test-PowerShell.yml@templates + parameters: + name: 'Test_Windows' + vmImage: 'windows-2022' + BuildConfiguration: ${{ variables.BuildConfiguration }} + + - template: Test-Bash.yml@templates + parameters: + name: 'Test_Linux' + vmImage: 'ubuntu-20.04' + BuildConfiguration: ${{ variables.BuildConfiguration }} + + - template: Test-Bash.yml@templates + parameters: + name: 'Test_macOS' + vmImage: 'macOS-11' + BuildConfiguration: ${{ variables.BuildConfiguration }} + + - template: Pack-MyGet.yml@templates + parameters: + name: 'Pack_MyGet' + vmImage: 'windows-2022' + BuildConfiguration: ${{ variables.BuildConfiguration }} + + - template: Pack-NuGet.yml@templates + parameters: + name: 'Pack_NuGet' + vmImage: 'windows-2022' + BuildConfiguration: ${{ variables.BuildConfiguration }} + + - template: Publish-PowerShell.yml@templates + parameters: + name: 'Publish_Windows' + vmImage: 'windows-2022' + BuildConfiguration: ${{ variables.BuildConfiguration }} + PublishFramework: ${{ variables.PublishFramework }} + PublishProject: ${{ variables.PublishProject }} + PublishRuntime: 'win7-x64' + + - template: Publish-Bash.yml@templates + parameters: + name: 'Publish_Ubuntu' + vmImage: 'ubuntu-20.04' + BuildConfiguration: ${{ variables.BuildConfiguration }} + PublishFramework: ${{ variables.PublishFramework }} + PublishProject: ${{ variables.PublishProject }} + PublishRuntime: 'ubuntu.14.04-x64' + + - template: Publish-Bash.yml@templates + parameters: + name: 'Publish_Debian' + vmImage: 'ubuntu-20.04' + BuildConfiguration: ${{ variables.BuildConfiguration }} + PublishFramework: ${{ variables.PublishFramework }} + PublishProject: ${{ variables.PublishProject }} + PublishRuntime: 'debian.8-x64' + + - template: Publish-Bash.yml@templates + parameters: + name: 'Publish_macOS' + vmImage: 'macOS-11' + BuildConfiguration: ${{ variables.BuildConfiguration }} + PublishFramework: ${{ variables.PublishFramework }} + PublishProject: ${{ variables.PublishProject }} + PublishRuntime: 'osx.10.12-x64'