Welcome to mirror list, hosted at ThFree Co, Russian Federation.

azure-pipelines.yml - github.com/aspnet/MessagePack-CSharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d18997c3bcbe010959186f783cf055e4dbf3019e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
trigger:
  branches:
    include:
    - master
    - develop
    - 'v?.*'
    - 'validate/*'
  paths:
    exclude: ["doc", "*.md"]

variables:
  TreatWarningsAsErrors: true
  DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
  BuildConfiguration: Release
  BuildPlatform: Any CPU

stages:
- stage: Build
  jobs:
  - job: Windows
    pool:
      vmImage: windows-2022
    steps:
    - checkout: self
      clean: true
    - template: azure-pipelines/install-dependencies.yml

    - powershell: '& (./azure-pipelines/Get-nbgv.ps1) cloud'
      displayName: Set build number

    - template: azure-pipelines/build.yml

  - job: Unity
    pool:
      name: CustomAgents
      demands:
      - UNITYHUB_EDITORS_FOLDER_LOCATION
      - UNITYVERSION -equals 2019.1
    steps:
    - checkout: self
      clean: true
    - template: azure-pipelines/install-dependencies.yml
    - template: azure-pipelines/build_unity.yml

  - job: Linux
    pool:
      vmImage: ubuntu-20.04
    steps:
    - checkout: self
      clean: true
    - template: azure-pipelines/install-dependencies.yml
    - template: azure-pipelines/build_nonWindows.yml

  - job: macOS
    pool:
      vmImage: macOS-11
    steps:
    - checkout: self
      clean: true
    - template: azure-pipelines/install-dependencies.yml
    - template: azure-pipelines/build_nonWindows.yml

# 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.
  - job: codegen_diff
    pool:
      vmImage: ubuntu-20.04
    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-20.04
    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