2020-03-02 22:55:05 +00:00
|
|
|
trigger:
|
2020-03-03 02:42:28 +00:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
exclude:
|
|
|
|
- '*'
|
2020-03-14 19:50:17 +00:00
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
2020-03-03 02:42:28 +00:00
|
|
|
jobs:
|
|
|
|
- job: Linux_Build
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
Clang:
|
|
|
|
COMPILER: clang
|
|
|
|
GCC:
|
|
|
|
COMPILER: gcc
|
|
|
|
DEPLOY_APPIMAGE: true
|
|
|
|
variables:
|
|
|
|
CCACHE_DIR: $(Pipeline.Workspace)/ccache
|
2020-04-07 02:53:23 +00:00
|
|
|
IS_AZURE: true
|
2020-03-03 02:42:28 +00:00
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
steps:
|
2020-03-28 20:13:55 +00:00
|
|
|
- task: Cache@2
|
2020-03-03 02:42:28 +00:00
|
|
|
inputs:
|
|
|
|
key: ccache | $(Agent.OS) | $(COMPILER)
|
|
|
|
path: $(CCACHE_DIR)
|
2020-03-27 13:37:27 +00:00
|
|
|
displayName: ccache
|
2020-03-14 19:50:17 +00:00
|
|
|
|
2020-03-03 02:42:28 +00:00
|
|
|
- bash: |
|
2020-05-15 03:04:24 +00:00
|
|
|
docker pull --quiet rpcs3/rpcs3-travis-xenial:1.4
|
2020-03-03 02:42:28 +00:00
|
|
|
docker run \
|
|
|
|
-v $(pwd):/rpcs3 \
|
2020-04-07 02:53:23 +00:00
|
|
|
--env-file .ci/travis.env \
|
2020-03-03 02:42:28 +00:00
|
|
|
-v $CCACHE_DIR:/root/.ccache \
|
|
|
|
-v $BUILD_ARTIFACTSTAGINGDIRECTORY:/root/artifacts \
|
2020-05-15 03:04:24 +00:00
|
|
|
rpcs3/rpcs3-travis-xenial:1.4 \
|
2020-04-07 02:53:23 +00:00
|
|
|
/rpcs3/.ci/build-linux.sh
|
2020-03-03 02:42:28 +00:00
|
|
|
displayName: Docker setup and build
|
2020-03-14 19:50:17 +00:00
|
|
|
|
2020-03-03 02:42:28 +00:00
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
2020-04-07 01:38:38 +00:00
|
|
|
condition: eq(variables['COMPILER'], 'gcc')
|
2020-03-27 13:37:27 +00:00
|
|
|
|
|
|
|
- job: Windows_Build
|
|
|
|
variables:
|
|
|
|
COMPILER: msvc
|
|
|
|
QT_VER: '5.14.1'
|
|
|
|
QT_DATE: '202001240957'
|
|
|
|
QTDIR: C:\Qt\$(QT_VER)\msvc2017_64
|
2020-05-07 13:33:43 +00:00
|
|
|
VULKAN_VER: '1.2.135.0'
|
|
|
|
VULKAN_SDK_SHA: '181b3353612c8b0fc5e1857b652d62140191ae42b98f2f0d532cf349cebfd8c6'
|
2020-03-27 13:37:27 +00:00
|
|
|
VULKAN_SDK: C:\VulkanSDK\$(VULKAN_VER)
|
|
|
|
CACHE_DIR: ./cache
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: "windows-latest"
|
|
|
|
|
|
|
|
steps:
|
2020-05-25 23:33:59 +00:00
|
|
|
- bash: .ci/get_keys-windows.sh
|
|
|
|
displayName: Get Cache Keys
|
|
|
|
|
2020-03-28 20:13:55 +00:00
|
|
|
- task: Cache@2
|
2020-03-27 13:37:27 +00:00
|
|
|
inputs:
|
2020-05-25 23:33:59 +00:00
|
|
|
key: $(Agent.OS) | $(COMPILER) | "$(QT_VER)" | $(VULKAN_SDK_SHA) | llvm.lock | glslang.lock
|
2020-03-27 13:37:27 +00:00
|
|
|
path: $(CACHE_DIR)
|
2020-05-25 23:33:59 +00:00
|
|
|
restoreKeys: |
|
|
|
|
$(Agent.OS) | $(COMPILER)
|
2020-03-27 13:37:27 +00:00
|
|
|
displayName: Cache
|
|
|
|
|
2020-04-07 02:53:23 +00:00
|
|
|
- bash: .ci/setup-windows.sh
|
2020-03-27 13:37:27 +00:00
|
|
|
displayName: Download and unpack dependencies
|
|
|
|
|
2020-04-07 02:53:23 +00:00
|
|
|
- bash: .ci/export-azure-vars.sh
|
2020-03-28 00:19:44 +00:00
|
|
|
displayName: Export Variables
|
|
|
|
|
2020-05-23 00:04:58 +00:00
|
|
|
- task: MSBuild@1
|
|
|
|
inputs:
|
|
|
|
solution: './Vulkan/spirv-tools-build/spirv-tools-build.vcxproj'
|
|
|
|
maximumCpuCount: true
|
|
|
|
platform: x64
|
|
|
|
configuration: 'Release'
|
|
|
|
displayName: Compile SPIRV-Tools
|
|
|
|
|
2020-03-27 13:37:27 +00:00
|
|
|
- task: VSBuild@1
|
|
|
|
inputs:
|
|
|
|
solution: 'rpcs3.sln'
|
2020-05-23 00:04:58 +00:00
|
|
|
maximumCpuCount: true
|
2020-03-27 13:37:27 +00:00
|
|
|
platform: x64
|
|
|
|
configuration: 'Release - LLVM'
|
|
|
|
displayName: Compile RPCS3
|
|
|
|
|
2020-04-07 02:53:23 +00:00
|
|
|
- bash: .ci/deploy-windows.sh
|
2020-03-27 13:37:27 +00:00
|
|
|
displayName: Pack up build artifacts
|
|
|
|
|
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
|
|
|
artifact: Windows App Bundle
|
|
|
|
|
|
|
|
- task: GitHubRelease@1
|
|
|
|
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
|
|
|
|
inputs:
|
|
|
|
gitHubConnection: 'RPCS3-Token'
|
2020-03-27 15:26:41 +00:00
|
|
|
repositoryName: 'RPCS3/rpcs3-binaries-win'
|
2020-03-27 13:37:27 +00:00
|
|
|
releaseNotesFilePath: 'GitHubReleaseMessage.txt'
|
|
|
|
action: 'create'
|
2020-03-27 16:18:21 +00:00
|
|
|
target: '7d09e3be30805911226241afbb14f8cdc2eb054e'
|
2020-03-27 13:37:27 +00:00
|
|
|
tagSource: 'userSpecifiedTag'
|
|
|
|
tag: 'build-$(Build.SourceVersion)'
|
|
|
|
title: $(AVVER)
|
|
|
|
addChangeLog: false
|
|
|
|
displayName: Push build to GitHub
|