mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
Add some comments to make easier to find jobs config in azure pipelines .yml
This commit is contained in:
@ -3,16 +3,30 @@ trigger:
|
|||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
is_original_repo: ${{ and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}
|
is_original_repo: ${{ and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}
|
||||||
is_fork: ${{ not(and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop')))) }}
|
is_fork: ${{ not(and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop')))) }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
#
|
||||||
|
# Initialization
|
||||||
|
#
|
||||||
|
|
||||||
- job: Initialization
|
- job: Initialization
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'vs2017-win2016'
|
vmImage: 'vs2017-win2016'
|
||||||
steps:
|
steps:
|
||||||
- template: azure-pipelines-build-number.yml
|
- template: azure-pipelines-build-number.yml
|
||||||
|
|
||||||
|
#
|
||||||
|
# CodeFormatValidation
|
||||||
|
#
|
||||||
|
|
||||||
- job: CodeFormatValidation
|
- job: CodeFormatValidation
|
||||||
dependsOn: Initialization
|
dependsOn: Initialization
|
||||||
pool:
|
pool:
|
||||||
@ -27,6 +41,11 @@ jobs:
|
|||||||
git diff $(Build.SourceVersion)
|
git diff $(Build.SourceVersion)
|
||||||
if [ "$(git diff $(Build.SourceVersion))" != "" ]; then exit 1; fi
|
if [ "$(git diff $(Build.SourceVersion))" != "" ]; then exit 1; fi
|
||||||
displayName: 'clang-format'
|
displayName: 'clang-format'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Linux
|
||||||
|
#
|
||||||
|
|
||||||
- job: Linux
|
- job: Linux
|
||||||
dependsOn: CodeFormatValidation
|
dependsOn: CodeFormatValidation
|
||||||
pool:
|
pool:
|
||||||
@ -62,6 +81,11 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
path: $(Build.ArtifactStagingDirectory)
|
path: $(Build.ArtifactStagingDirectory)
|
||||||
artifactName: src $(Build.BuildNumber) tarball
|
artifactName: src $(Build.BuildNumber) tarball
|
||||||
|
|
||||||
|
#
|
||||||
|
# MacOS
|
||||||
|
#
|
||||||
|
|
||||||
- job: MacOS
|
- job: MacOS
|
||||||
dependsOn: CodeFormatValidation
|
dependsOn: CodeFormatValidation
|
||||||
variables:
|
variables:
|
||||||
@ -101,6 +125,11 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
path: $(Build.ArtifactStagingDirectory)
|
path: $(Build.ArtifactStagingDirectory)
|
||||||
artifactName: Macos $(Build.BuildNumber) dmg
|
artifactName: Macos $(Build.BuildNumber) dmg
|
||||||
|
|
||||||
|
#
|
||||||
|
# Windows x64
|
||||||
|
#
|
||||||
|
|
||||||
- template: azure-pipelines-windows-template.yml
|
- template: azure-pipelines-windows-template.yml
|
||||||
parameters:
|
parameters:
|
||||||
name: Windows_x64
|
name: Windows_x64
|
||||||
@ -111,6 +140,11 @@ jobs:
|
|||||||
vc_redist_url: 'https://aka.ms/vs/16/release/vc_redist.x64.exe'
|
vc_redist_url: 'https://aka.ms/vs/16/release/vc_redist.x64.exe'
|
||||||
vc_redist_file_name: 'vc_redist.x64.exe'
|
vc_redist_file_name: 'vc_redist.x64.exe'
|
||||||
vc_vars: 'vcvars64.bat'
|
vc_vars: 'vcvars64.bat'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Windows x86
|
||||||
|
#
|
||||||
|
|
||||||
- template: azure-pipelines-windows-template.yml
|
- template: azure-pipelines-windows-template.yml
|
||||||
parameters:
|
parameters:
|
||||||
name: Windows_x86
|
name: Windows_x86
|
||||||
@ -122,6 +156,10 @@ jobs:
|
|||||||
vc_redist_file_name: 'vc_redist.x86.exe'
|
vc_redist_file_name: 'vc_redist.x86.exe'
|
||||||
vc_vars: 'vcvars32.bat'
|
vc_vars: 'vcvars32.bat'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Dev builds publication
|
||||||
|
#
|
||||||
|
|
||||||
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
||||||
- job: PublishDevBuilds
|
- job: PublishDevBuilds
|
||||||
dependsOn:
|
dependsOn:
|
||||||
@ -156,6 +194,10 @@ jobs:
|
|||||||
tag: $(VERSION)
|
tag: $(VERSION)
|
||||||
addChangeLog: false
|
addChangeLog: false
|
||||||
|
|
||||||
|
#
|
||||||
|
# Release builds publication
|
||||||
|
#
|
||||||
|
|
||||||
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
|
||||||
- job: Release
|
- job: Release
|
||||||
dependsOn:
|
dependsOn:
|
||||||
|
Reference in New Issue
Block a user