MessagePack-CSharp/azure-pipelines.yml

102 строки
2.6 KiB
YAML
Исходник Обычный вид История

2018-12-12 07:05:55 +03:00
trigger:
branches:
2019-11-25 17:30:40 +03:00
include:
- master
2020-09-28 16:49:06 +03:00
- develop
2020-01-31 02:48:36 +03:00
- 'v?.*'
- 'validate/*'
2018-12-12 07:05:55 +03:00
paths:
exclude: ["doc", "*.md"]
variables:
TreatWarningsAsErrors: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
BuildConfiguration: Release
BuildPlatform: Any CPU
2020-09-14 17:47:23 +03:00
stages:
- stage: Build
jobs:
- job: Windows
pool:
vmImage: windows-2019
steps:
- checkout: self
clean: true
- template: azure-pipelines/install-dependencies.yml
2020-09-14 17:47:23 +03:00
- powershell: '& (./azure-pipelines/Get-nbgv.ps1) cloud'
displayName: Set build number
2020-09-14 17:47:23 +03:00
- template: azure-pipelines/build.yml
2020-09-14 17:47:23 +03:00
- job: Unity
pool:
name: CustomAgents
2021-11-03 22:11:40 +03:00
demands:
- UNITYHUB_EDITORS_FOLDER_LOCATION
- UNITYVERSION -equals 2019.1
2020-09-14 17:47:23 +03:00
steps:
- checkout: self
clean: true
- template: azure-pipelines/install-dependencies.yml
- template: azure-pipelines/build_unity.yml
2020-09-14 17:47:23 +03:00
- job: Linux
pool:
2021-11-03 21:12:47 +03:00
vmImage: Ubuntu 18.04
2020-09-14 17:47:23 +03:00
steps:
- checkout: self
clean: true
- template: azure-pipelines/install-dependencies.yml
- template: azure-pipelines/build_nonWindows.yml
2020-09-14 17:47:23 +03:00
- job: macOS
pool:
vmImage: macOS-10.15
steps:
- checkout: self
clean: true
- template: azure-pipelines/install-dependencies.yml
- template: azure-pipelines/build_nonWindows.yml
2020-08-14 20:23:55 +03:00
# This job ensures that we're running mpc regularly on the generated code that we check in.
# It also helps exercise mpc so bugs don't go unnoticed.
2020-09-14 17:47:23 +03:00
- job: codegen_diff
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
clean: true
- template: azure-pipelines/install-dependencies.yml
- pwsh: sandbox/codegen.ps1
displayName: Regenerate checked-in code
- bash: |
git add -u . # compare after applying git EOL normalization
git diff --cached --exit-code --stat \
|| (echo "##[error] found changed files after build. please 'azure-pipelines/codegen.ps1'" \
"and check in all changes" \
&& git diff --cached \
&& exit 1)
displayName: Check for uncommitted changes
- stage: Publish
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
jobs:
- job: push
pool:
vmImage: ubuntu-latest
steps:
- download: current
artifact: nuget
- task: NuGetToolInstaller@1
displayName: Use NuGet 5.x
inputs:
versionSpec: 5.x
- task: NuGetCommand@2
displayName: NuGet push
inputs:
command: push
packagesToPush: $(Pipeline.Workspace)/nuget/*.nupkg
publishVstsFeed: MessagePack-CSharp/MessagePack-CI
continueOnError: true