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:
|
2021-12-25 07:58:25 +03:00
|
|
|
vmImage: windows-2022
|
2020-09-14 17:47:23 +03:00
|
|
|
steps:
|
|
|
|
- checkout: self
|
|
|
|
clean: true
|
|
|
|
- template: azure-pipelines/install-dependencies.yml
|
2019-11-20 01:28:05 +03:00
|
|
|
|
2020-09-14 17:47:23 +03:00
|
|
|
- powershell: '& (./azure-pipelines/Get-nbgv.ps1) cloud'
|
|
|
|
displayName: Set build number
|
2019-11-20 01:28:05 +03:00
|
|
|
|
2020-09-14 17:47:23 +03:00
|
|
|
- template: azure-pipelines/build.yml
|
2019-04-15 17:36:15 +03:00
|
|
|
|
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
|
2019-11-06 20:44:40 +03:00
|
|
|
|
2020-09-14 17:47:23 +03:00
|
|
|
- job: Linux
|
|
|
|
pool:
|
2021-12-25 07:58:25 +03:00
|
|
|
vmImage: ubuntu-20.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
|
2019-11-06 20:44:40 +03:00
|
|
|
|
2020-09-14 17:47:23 +03:00
|
|
|
- job: macOS
|
|
|
|
pool:
|
2021-12-25 07:58:25 +03:00
|
|
|
vmImage: macOS-11
|
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-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:
|
2021-12-25 07:58:25 +03:00
|
|
|
vmImage: ubuntu-20.04
|
2020-09-14 17:47:23 +03:00
|
|
|
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:
|
2021-12-25 07:58:25 +03:00
|
|
|
vmImage: ubuntu-20.04
|
2020-09-14 17:47:23 +03:00
|
|
|
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
|
2020-12-10 08:56:40 +03:00
|
|
|
continueOnError: true
|