Merge pull request #2227 from Margen67/azure
.azure-pipelines.yml changes
This commit is contained in:
commit
bc14c34efc
|
@ -4,17 +4,11 @@ trigger:
|
||||||
- '*'
|
- '*'
|
||||||
paths:
|
paths:
|
||||||
exclude:
|
exclude:
|
||||||
- doc/*
|
- '.github/**'
|
||||||
- doc/*/*
|
- '*.bat'
|
||||||
- .github/*
|
- '.appveyor.yml'
|
||||||
- .github/*/*
|
- '.travis.yml'
|
||||||
- .appveyor.yml
|
- 'doc/**'
|
||||||
- .travis.yml
|
|
||||||
- CONTRIBUTORS
|
|
||||||
- COPYING
|
|
||||||
- README.md
|
|
||||||
- gen-msvc-project.bat
|
|
||||||
- setup.bat
|
|
||||||
|
|
||||||
pr:
|
pr:
|
||||||
branches:
|
branches:
|
||||||
|
@ -22,62 +16,43 @@ pr:
|
||||||
- '*'
|
- '*'
|
||||||
paths:
|
paths:
|
||||||
exclude:
|
exclude:
|
||||||
- doc/*
|
- '.github/**'
|
||||||
- doc/*/*
|
- '*.bat'
|
||||||
- .github/*
|
- '.appveyor.yml'
|
||||||
- .github/*/*
|
- '.travis.yml'
|
||||||
- .appveyor.yml
|
- 'doc/**'
|
||||||
- .travis.yml
|
|
||||||
- CONTRIBUTORS
|
|
||||||
- COPYING
|
|
||||||
- README.md
|
|
||||||
- gen-msvc-project.bat
|
|
||||||
- setup.bat
|
|
||||||
|
|
||||||
jobs:
|
pool:
|
||||||
- job:
|
vmImage: windows-latest
|
||||||
pool:
|
strategy:
|
||||||
vmImage: windows-latest
|
matrix:
|
||||||
strategy:
|
Release:
|
||||||
matrix:
|
configuration: Release
|
||||||
Release:
|
Debug:
|
||||||
configuration: Release
|
configuration: Debug
|
||||||
Debug:
|
|
||||||
configuration: Debug
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- pwsh: |
|
||||||
echo "This CI isn't tested against master, and therefore, isn't guaranteed to work. Pull requests are welcome."
|
echo "This CI isn't tested against master, and therefore, isn't guaranteed to work. Pull requests are welcome."
|
||||||
echo "If it doesn't work and you'd rather not fix it, it's recommended to use GitHub Actions CI instead."
|
echo "If it doesn't work and you'd rather not fix it, it's recommended to use GitHub Actions CI instead."
|
||||||
displayName: 'Third-Party CI Warning'
|
displayName: Third-Party CI Warning
|
||||||
|
|
||||||
- checkout: self
|
- checkout: self
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- script: |
|
- pwsh: cmake -B build -A Win32
|
||||||
mkdir build
|
displayName: Before build
|
||||||
cd build
|
|
||||||
cmake .. -G "Visual Studio 16 2019" -A Win32
|
|
||||||
displayName: 'Before build'
|
|
||||||
|
|
||||||
- script: cmake --build . --config %configuration%
|
- pwsh: cmake --build . --config $env:configuration
|
||||||
workingDirectory: build
|
workingDirectory: build
|
||||||
displayName: 'Build'
|
displayName: Build
|
||||||
|
|
||||||
- script: cmake --install . --config %configuration% --prefix ../artifacts
|
- pwsh: cmake --install . --config $env:configuration --prefix $(Build.ArtifactStagingDirectory)
|
||||||
workingDirectory: build
|
workingDirectory: build
|
||||||
displayName: 'Prepare Files'
|
condition: and(succeeded(), eq(variables['configuration'], 'Release'))
|
||||||
condition: and(succeeded(), eq(variables['Agent.JobName'], 'Release'))
|
displayName: Prepare artifacts
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- publish: $(Build.ArtifactStagingDirectory)
|
||||||
displayName: 'Copy files to $(Build.ArtifactStagingDirectory)'
|
artifact: $(configuration)
|
||||||
condition: and(succeeded(), eq(variables['Agent.JobName'], 'Release'))
|
condition: and(succeeded(), eq(variables['configuration'], 'Release'))
|
||||||
inputs:
|
displayName: Publish artifacts
|
||||||
Contents: artifacts\bin\**
|
|
||||||
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
|
||||||
flattenFolders: true
|
|
||||||
|
|
||||||
- publish: $(Build.ArtifactStagingDirectory)
|
|
||||||
artifact: $(configuration)
|
|
||||||
condition: and(succeeded(), eq(variables['Agent.JobName'], 'Release'))
|
|
||||||
displayName: Publish artifact(s)
|
|
||||||
|
|
Loading…
Reference in New Issue