2020-03-02 22:55:05 +00:00
|
|
|
trigger:
|
2020-03-03 02:42:28 +00:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
exclude:
|
|
|
|
- '*'
|
2023-08-30 19:56:54 +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
|
|
|
|
variables:
|
|
|
|
CCACHE_DIR: $(Pipeline.Workspace)/ccache
|
2021-04-04 08:34:12 +00:00
|
|
|
CI_HAS_ARTIFACTS: true
|
2020-11-22 23:07:21 +00:00
|
|
|
UPLOAD_COMMIT_HASH: d812f1254a1157c80fd402f94446310560f54e5f
|
|
|
|
UPLOAD_REPO_FULL_NAME: "RPCS3/rpcs3-binaries-linux"
|
2020-11-24 00:43:12 +00:00
|
|
|
DEPLOY_APPIMAGE: true
|
2021-04-04 08:34:12 +00:00
|
|
|
APPDIR: "/rpcs3/build/appdir"
|
|
|
|
ARTDIR: "/root/artifacts"
|
|
|
|
RELEASE_MESSAGE: "/rpcs3/GitHubReleaseMessage.txt"
|
|
|
|
|
2020-03-03 02:42:28 +00:00
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
2021-04-04 08:34:12 +00:00
|
|
|
|
2020-03-03 02:42:28 +00:00
|
|
|
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: |
|
2023-08-18 15:29:21 +00:00
|
|
|
docker pull --quiet rpcs3/rpcs3-ci-focal:1.3
|
2020-03-03 02:42:28 +00:00
|
|
|
docker run \
|
|
|
|
-v $(pwd):/rpcs3 \
|
2020-11-24 00:23:01 +00:00
|
|
|
--env-file .ci/docker.env \
|
2020-03-03 02:42:28 +00:00
|
|
|
-v $CCACHE_DIR:/root/.ccache \
|
|
|
|
-v $BUILD_ARTIFACTSTAGINGDIRECTORY:/root/artifacts \
|
2023-08-18 15:29:21 +00:00
|
|
|
rpcs3/rpcs3-ci-focal:1.3 \
|
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-11-24 00:43:12 +00:00
|
|
|
condition: succeeded()
|
|
|
|
artifact: RPCS3 for Linux ($(COMPILER))
|
2020-03-27 13:37:27 +00:00
|
|
|
|
2023-08-30 16:56:18 +00:00
|
|
|
- bash: |
|
|
|
|
COMM_TAG=$(awk '/version{.*}/ { printf("%d.%d.%d", $5, $6, $7) }' ./rpcs3/rpcs3_version.cpp)
|
|
|
|
COMM_COUNT=$(git rev-list --count HEAD)
|
|
|
|
COMM_HASH=$(git rev-parse --short=8 HEAD)
|
2022-01-05 08:32:13 +00:00
|
|
|
|
2023-08-30 16:56:18 +00:00
|
|
|
export AVVER="${COMM_TAG}-${COMM_COUNT}"
|
2022-01-05 08:32:13 +00:00
|
|
|
|
2023-08-30 16:56:18 +00:00
|
|
|
.ci/github-upload.sh
|
|
|
|
condition: and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.Repository.Name'], 'RPCS3/rpcs3'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['COMPILER'], 'gcc'))
|
|
|
|
displayName: Push build to GitHub
|
|
|
|
env:
|
|
|
|
RPCS3_TOKEN: $(RPCS3-Token)
|
2020-11-22 23:07:21 +00:00
|
|
|
|
2020-03-27 13:37:27 +00:00
|
|
|
- job: Windows_Build
|
|
|
|
variables:
|
|
|
|
COMPILER: msvc
|
2021-05-22 08:42:05 +00:00
|
|
|
QT_VER_MAIN: '6'
|
2023-08-18 15:29:21 +00:00
|
|
|
QT_VER: '6.6.0'
|
2020-12-08 21:22:08 +00:00
|
|
|
QT_VER_MSVC: 'msvc2019'
|
2023-08-18 15:29:21 +00:00
|
|
|
QT_DATE: '202310040911'
|
2020-12-08 21:22:08 +00:00
|
|
|
QTDIR: C:\Qt\$(QT_VER)\$(QT_VER_MSVC)_64
|
2022-12-10 18:30:20 +00:00
|
|
|
VULKAN_VER: '1.3.224.1'
|
|
|
|
VULKAN_SDK_SHA: '2029e652e39ee6a6036cff3765da31e1e6c595fd2413d3cd111dfab7855621ea'
|
2020-03-27 13:37:27 +00:00
|
|
|
VULKAN_SDK: C:\VulkanSDK\$(VULKAN_VER)
|
|
|
|
CACHE_DIR: ./cache
|
2020-11-22 23:07:21 +00:00
|
|
|
UPLOAD_COMMIT_HASH: 7d09e3be30805911226241afbb14f8cdc2eb054e
|
|
|
|
UPLOAD_REPO_FULL_NAME: "RPCS3/rpcs3-binaries-win"
|
2020-03-27 13:37:27 +00:00
|
|
|
|
|
|
|
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-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
|
2021-03-29 19:45:48 +00:00
|
|
|
configuration: 'Release'
|
2020-03-27 13:37:27 +00:00
|
|
|
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)
|
2020-06-08 01:31:12 +00:00
|
|
|
condition: succeeded()
|
|
|
|
artifact: RPCS3 for Windows
|
2020-03-27 13:37:27 +00:00
|
|
|
|
2023-08-30 17:09:23 +00:00
|
|
|
- bash: .ci/github-upload.sh
|
2023-08-30 16:56:18 +00:00
|
|
|
condition: and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.Repository.Name'], 'RPCS3/rpcs3'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
|
|
|
displayName: Push build to GitHub
|
|
|
|
env:
|
|
|
|
RPCS3_TOKEN: $(RPCS3-Token)
|
2023-09-19 19:07:13 +00:00
|
|
|
|
|
|
|
- job: Mac_Build
|
2023-10-03 18:17:41 +00:00
|
|
|
timeoutInMinutes: 180
|
2023-09-19 19:07:13 +00:00
|
|
|
variables:
|
|
|
|
CCACHE_DIR: "/tmp/ccache_dir"
|
|
|
|
CCACHE_MAXSIZE: 300M
|
|
|
|
CI_HAS_ARTIFACTS: true
|
|
|
|
UPLOAD_COMMIT_HASH: 51ae32f468089a8169aaf1567de355ff4a3e0842
|
|
|
|
UPLOAD_REPO_FULL_NAME: "RPCS3/rpcs3-binaries-mac"
|
|
|
|
RELEASE_MESSAGE: "../GitHubReleaseMessage.txt"
|
|
|
|
ARTDIR: $(Build.ArtifactStagingDirectory)
|
2023-08-18 15:29:21 +00:00
|
|
|
QT_VER: '6.6.0'
|
2023-09-19 19:07:13 +00:00
|
|
|
QT_VER_MAIN: '6'
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: "macOS-12"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: Cache@2
|
|
|
|
inputs:
|
|
|
|
key: ccache | "$(Agent.OS)"
|
|
|
|
path: $(CCACHE_DIR)
|
|
|
|
restoreKeys: |
|
|
|
|
ccache | "$(Agent.OS)"
|
|
|
|
displayName: Ccache cache
|
|
|
|
|
|
|
|
- task: Cache@2
|
|
|
|
inputs:
|
|
|
|
key: qt | "$(Agent.OS)" | "$(QT_VER)"
|
|
|
|
path: /tmp/Qt
|
|
|
|
restoreKeys: |
|
|
|
|
qt | "$(Agent.OS)" | "$(QT_VER)"
|
|
|
|
displayName: Qt cache
|
|
|
|
|
|
|
|
- task: Cache@2
|
|
|
|
inputs:
|
|
|
|
key: brew | "$(Agent.OS)"
|
|
|
|
path: /Users/runner/Library/Caches/Homebrew
|
|
|
|
restoreKeys: |
|
|
|
|
brew | "$(Agent.OS)"
|
|
|
|
displayName: Homebrew cache
|
|
|
|
|
|
|
|
- bash: |
|
|
|
|
chmod +x ".ci/build-mac.sh"
|
|
|
|
chmod +x ".ci/deploy-mac.sh"
|
|
|
|
".ci/build-mac.sh"
|
|
|
|
displayName: Build MacOS
|
|
|
|
|
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
|
|
|
condition: succeeded()
|
|
|
|
artifact: RPCS3 for Mac
|
|
|
|
|
|
|
|
- bash: |
|
|
|
|
source './.ci/export-cirrus-vars.sh'
|
|
|
|
.ci/github-upload.sh
|
|
|
|
condition: and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.Repository.Name'], 'RPCS3/rpcs3'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
|
|
|
displayName: Push build to GitHub
|
|
|
|
env:
|
|
|
|
RPCS3_TOKEN: $(RPCS3-Token)
|