xenia-canary/.azure-pipelines.yml

67 lines
1.4 KiB
YAML
Raw Normal View History

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:
2019-09-13 16:00:12 +00:00
vmImage: windows-latest
strategy:
matrix:
AVX:
cpu_arch: AVX
AVX2:
cpu_arch: AVX2
2020-01-26 05:09:21 +00:00
AVX512:
cpu_arch: AVX512
steps:
2020-01-26 05:09:21 +00:00
- script: wmic cpu get caption, deviceid, name, numberofcores, maxclockspeed, status
displayName: 'CPU info'
- script: xb setup
displayName: 'Setup'
- script: xb build --cpu_arch=$(cpu_arch) --target=src\xenia-app --target=src\xenia-vfs-dump
displayName: 'Build'
- script: |
7z a $(Build.ArtifactStagingDirectory)\xenia-$(Build.SourceBranchName).zip LICENSE .\build\bin\Windows\Release\xenia-canary.exe
7z a $(Build.ArtifactStagingDirectory)\xenia-vfs-dump-$(Build.SourceBranchName).zip LICENSE .\build\bin\Windows\Release\xenia-vfs-dump.exe
7z a $(Build.ArtifactStagingDirectory)\SDL2.zip .\build\bin\Windows\Release\SDL2.dll
displayName: 'Create archives'
- publish: $(Build.ArtifactStagingDirectory)
artifact: $(cpu_arch)
displayName: Publish artifacts