mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-26 12:17:32 +00:00
c4a21438ad
- Rename .travis dir to .ci, since it isn't just for Travis - Convert Linux build scripts to posix sh - Clean up some scripts per shellcheck
101 lines
2.5 KiB
YAML
101 lines
2.5 KiB
YAML
trigger:
|
|
branches:
|
|
include:
|
|
- master
|
|
tags:
|
|
exclude:
|
|
- '*'
|
|
pr:
|
|
branches:
|
|
include:
|
|
- master
|
|
jobs:
|
|
- job: Linux_Build
|
|
strategy:
|
|
matrix:
|
|
Clang:
|
|
COMPILER: clang
|
|
GCC:
|
|
COMPILER: gcc
|
|
DEPLOY_APPIMAGE: true
|
|
variables:
|
|
CCACHE_DIR: $(Pipeline.Workspace)/ccache
|
|
IS_AZURE: true
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- task: Cache@2
|
|
inputs:
|
|
key: ccache | $(Agent.OS) | $(COMPILER)
|
|
path: $(CCACHE_DIR)
|
|
displayName: ccache
|
|
|
|
- bash: |
|
|
docker pull --quiet rpcs3/rpcs3-travis-xenial:1.2
|
|
docker run \
|
|
-v $(pwd):/rpcs3 \
|
|
--env-file .ci/travis.env \
|
|
-v $CCACHE_DIR:/root/.ccache \
|
|
-v $BUILD_ARTIFACTSTAGINGDIRECTORY:/root/artifacts \
|
|
rpcs3/rpcs3-travis-xenial:1.2 \
|
|
/rpcs3/.ci/build-linux.sh
|
|
displayName: Docker setup and build
|
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
|
condition: eq(variables['COMPILER'], 'gcc')
|
|
|
|
- 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@2
|
|
inputs:
|
|
key: $(Agent.OS) | $(COMPILER)
|
|
path: $(CACHE_DIR)
|
|
displayName: Cache
|
|
|
|
- bash: .ci/setup-windows.sh
|
|
displayName: Download and unpack dependencies
|
|
|
|
- bash: .ci/export-azure-vars.sh
|
|
displayName: Export Variables
|
|
|
|
- task: VSBuild@1
|
|
inputs:
|
|
solution: 'rpcs3.sln'
|
|
msbuildArgs: '/m'
|
|
platform: x64
|
|
configuration: 'Release - LLVM'
|
|
displayName: Compile RPCS3
|
|
|
|
- bash: .ci/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'
|
|
repositoryName: 'RPCS3/rpcs3-binaries-win'
|
|
releaseNotesFilePath: 'GitHubReleaseMessage.txt'
|
|
action: 'create'
|
|
target: '7d09e3be30805911226241afbb14f8cdc2eb054e'
|
|
tagSource: 'userSpecifiedTag'
|
|
tag: 'build-$(Build.SourceVersion)'
|
|
title: $(AVVER)
|
|
addChangeLog: false
|
|
displayName: Push build to GitHub
|