2020-03-02 23:55:05 +01:00
|
|
|
trigger:
|
2020-03-03 03:42:28 +01:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
exclude:
|
|
|
|
- '*'
|
2020-03-14 20:50:17 +01:00
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
2020-03-03 03:42:28 +01:00
|
|
|
jobs:
|
|
|
|
- job: Linux_Build
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
Clang:
|
|
|
|
COMPILER: clang
|
|
|
|
GCC:
|
|
|
|
COMPILER: gcc
|
|
|
|
DEPLOY_APPIMAGE: true
|
|
|
|
variables:
|
|
|
|
CCACHE_DIR: $(Pipeline.Workspace)/ccache
|
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
steps:
|
|
|
|
- task: Cache@0
|
|
|
|
inputs:
|
|
|
|
key: ccache | $(Agent.OS) | $(COMPILER)
|
|
|
|
path: $(CCACHE_DIR)
|
2020-03-27 14:37:27 +01:00
|
|
|
displayName: ccache
|
2020-03-14 20:50:17 +01:00
|
|
|
|
2020-03-03 03:42:28 +01:00
|
|
|
- bash: |
|
|
|
|
docker pull --quiet rpcs3/rpcs3-travis-xenial:1.2
|
|
|
|
docker run \
|
|
|
|
-v $(pwd):/rpcs3 \
|
|
|
|
--env-file .travis/travis.env \
|
|
|
|
-v $CCACHE_DIR:/root/.ccache \
|
|
|
|
-v $BUILD_ARTIFACTSTAGINGDIRECTORY:/root/artifacts \
|
|
|
|
rpcs3/rpcs3-travis-xenial:1.2 \
|
|
|
|
/bin/bash -ex /rpcs3/.travis/build-linux.bash
|
|
|
|
displayName: Docker setup and build
|
2020-03-14 20:50:17 +01:00
|
|
|
|
2020-03-03 03:42:28 +01:00
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
2020-03-27 14:37:27 +01:00
|
|
|
|
|
|
|
- job: Windows_Build
|
|
|
|
variables:
|
|
|
|
COMPILER: msvc
|
|
|
|
QT_VER: '5.14.1'
|
|
|
|
QT_DATE: '202001240957'
|
|
|
|
QTDIR: C:\Qt\$(QT_VER)\msvc2017_64
|
|
|
|
VULKAN_VER: '1.1.126.0'
|
|
|
|
VULKAN_SDK_SHA: 'ee86f25580b550390ce46508415e744d62e87e9c0de6cd299998058253a2a4ba'
|
|
|
|
VULKAN_SDK: C:\VulkanSDK\$(VULKAN_VER)
|
|
|
|
CACHE_DIR: ./cache
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: "windows-latest"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: Cache@0
|
|
|
|
inputs:
|
|
|
|
key: $(Agent.OS) | $(COMPILER)
|
|
|
|
path: $(CACHE_DIR)
|
|
|
|
displayName: Cache
|
|
|
|
|
|
|
|
- bash: .travis/setup-windows.sh
|
|
|
|
displayName: Download and unpack dependencies
|
|
|
|
|
2020-03-28 01:19:44 +01:00
|
|
|
- bash: .travis/export-azure-vars.sh
|
|
|
|
displayName: Export Variables
|
|
|
|
|
2020-03-27 14:37:27 +01:00
|
|
|
- task: VSBuild@1
|
|
|
|
inputs:
|
|
|
|
solution: 'rpcs3.sln'
|
|
|
|
msbuildArgs: '/m'
|
|
|
|
platform: x64
|
|
|
|
configuration: 'Release - LLVM'
|
|
|
|
displayName: Compile RPCS3
|
|
|
|
|
|
|
|
- bash: .travis/deploy-windows.sh
|
|
|
|
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 16:26:41 +01:00
|
|
|
repositoryName: 'RPCS3/rpcs3-binaries-win'
|
2020-03-27 14:37:27 +01:00
|
|
|
releaseNotesFilePath: 'GitHubReleaseMessage.txt'
|
|
|
|
action: 'create'
|
2020-03-27 17:18:21 +01:00
|
|
|
target: '7d09e3be30805911226241afbb14f8cdc2eb054e'
|
2020-03-27 14:37:27 +01:00
|
|
|
tagSource: 'userSpecifiedTag'
|
|
|
|
tag: 'build-$(Build.SourceVersion)'
|
|
|
|
title: $(AVVER)
|
|
|
|
addChangeLog: false
|
|
|
|
displayName: Push build to GitHub
|