xenia-canary/.azure-pipelines.yml

75 lines
1.7 KiB
YAML

trigger:
branches:
include:
- '*'
exclude:
- gh-pages
- master
paths:
exclude:
- docs/*
- docs/*/*
- .github/*
- .github/*/*
- LICENSE
- README.md
- .appveyor.yml
- .travis.yml
pr:
branches:
include:
- '*'
exclude:
- gh-pages
- master
paths:
exclude:
- docs/*
- docs/*/*
- .github/*
- .github/*/*
- LICENSE
- README.md
- .appveyor.yml
- .travis.yml
jobs:
- job:
pool:
vmImage: windows-latest
strategy:
matrix:
AVX:
cpu_arch: AVX
AVX2:
cpu_arch: AVX2
AVX512:
cpu_arch: AVX512
steps:
- script: xb setup
displayName: 'Setup'
- script: xb build --cpu_arch=$(cpu_arch) --target=src\xenia-app --target=src\xenia-vfs-dump
displayName: 'Build'
- pwsh: |-
robocopy . build\bin\Windows\Release LICENSE /r:0 /w:0
robocopy build\bin\Windows\Release $(Build.ArtifactStagingDirectory)\xenia-canary xenia-canary.exe LICENSE /r:0 /w:0
robocopy build\bin\Windows\Release $(Build.ArtifactStagingDirectory)\xenia-vfs-dump xenia-vfs-dump.exe LICENSE /r:0 /w:0
If ($LastExitCode -le 7) { $LastExitCode = 0 }
displayName: 'Prepare artifacts'
- publish: $(Build.ArtifactStagingDirectory)\xenia-canary
artifact: xenia-canary-$(cpu_arch)
displayName: 'Publish xenia-canary artifacts'
- publish: $(Build.ArtifactStagingDirectory)\xenia-vfs-dump
condition: and(succeeded(), eq(variables['Agent.JobName'], 'AVX'))
artifact: xenia-vfs-dump
displayName: 'Publish xenia-vfs-dump artifacts'
- publish: build\bin\Windows\Release\SDL2.dll
condition: and(succeeded(), eq(variables['Agent.JobName'], 'AVX'))
artifact: SDL2
displayName: 'Publish SDL2 artifact(s)'