2020-03-02 23:55:05 +01:00
|
|
|
trigger:
|
2020-03-03 03:42:28 +01:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
exclude:
|
|
|
|
- '*'
|
2023-08-30 21:56:54 +02: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
|
|
|
|
variables:
|
|
|
|
CCACHE_DIR: $(Pipeline.Workspace)/ccache
|
2021-04-04 10:34:12 +02:00
|
|
|
CI_HAS_ARTIFACTS: true
|
2020-11-23 00:07:21 +01:00
|
|
|
UPLOAD_COMMIT_HASH: d812f1254a1157c80fd402f94446310560f54e5f
|
|
|
|
UPLOAD_REPO_FULL_NAME: "RPCS3/rpcs3-binaries-linux"
|
2020-11-24 01:43:12 +01:00
|
|
|
DEPLOY_APPIMAGE: true
|
2021-04-04 10:34:12 +02:00
|
|
|
APPDIR: "/rpcs3/build/appdir"
|
|
|
|
ARTDIR: "/root/artifacts"
|
|
|
|
RELEASE_MESSAGE: "/rpcs3/GitHubReleaseMessage.txt"
|
|
|
|
|
2020-03-03 03:42:28 +01:00
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
2021-04-04 10:34:12 +02:00
|
|
|
|
2020-03-03 03:42:28 +01:00
|
|
|
steps:
|
2020-03-28 21:13:55 +01:00
|
|
|
- task: Cache@2
|
2020-03-03 03:42:28 +01:00
|
|
|
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: |
|
2024-10-02 03:25:14 +02:00
|
|
|
docker pull --quiet rpcs3/rpcs3-ci-focal:1.7.1
|
2020-03-03 03:42:28 +01:00
|
|
|
docker run \
|
|
|
|
-v $(pwd):/rpcs3 \
|
2020-11-24 01:23:01 +01:00
|
|
|
--env-file .ci/docker.env \
|
2020-03-03 03:42:28 +01:00
|
|
|
-v $CCACHE_DIR:/root/.ccache \
|
|
|
|
-v $BUILD_ARTIFACTSTAGINGDIRECTORY:/root/artifacts \
|
2024-10-02 03:25:14 +02:00
|
|
|
rpcs3/rpcs3-ci-focal:1.7.1 \
|
2020-04-07 04:53:23 +02:00
|
|
|
/rpcs3/.ci/build-linux.sh
|
2020-03-03 03:42:28 +01:00
|
|
|
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-11-24 01:43:12 +01:00
|
|
|
condition: succeeded()
|
|
|
|
artifact: RPCS3 for Linux ($(COMPILER))
|
2020-03-27 14:37:27 +01:00
|
|
|
|
2023-08-30 18:56:18 +02: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 09:32:13 +01:00
|
|
|
|
2023-08-30 18:56:18 +02:00
|
|
|
export AVVER="${COMM_TAG}-${COMM_COUNT}"
|
2022-01-05 09:32:13 +01:00
|
|
|
|
2023-08-30 18:56:18 +02:00
|
|
|
.ci/github-upload.sh
|
2023-11-08 00:43:44 +01:00
|
|
|
condition: and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.Repository.Name'], 'RPCS3/rpcs3'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['COMPILER'], 'clang'))
|
2023-08-30 18:56:18 +02:00
|
|
|
displayName: Push build to GitHub
|
|
|
|
env:
|
|
|
|
RPCS3_TOKEN: $(RPCS3-Token)
|
2020-11-23 00:07:21 +01:00
|
|
|
|
2020-03-27 14:37:27 +01:00
|
|
|
- job: Windows_Build
|
|
|
|
variables:
|
|
|
|
COMPILER: msvc
|
2021-05-22 10:42:05 +02:00
|
|
|
QT_VER_MAIN: '6'
|
2024-09-25 19:24:55 +02:00
|
|
|
QT_VER: '6.7.3'
|
2020-12-08 22:22:08 +01:00
|
|
|
QT_VER_MSVC: 'msvc2019'
|
2024-09-25 19:24:55 +02:00
|
|
|
QT_DATE: '202409200836'
|
2020-12-08 22:22:08 +01:00
|
|
|
QTDIR: C:\Qt\$(QT_VER)\$(QT_VER_MSVC)_64
|
2023-12-04 07:46:55 +01:00
|
|
|
VULKAN_VER: '1.3.268.0'
|
|
|
|
VULKAN_SDK_SHA: '8459ef49bd06b697115ddd3d97c9aec729e849cd775f5be70897718a9b3b9db5'
|
2020-03-27 14:37:27 +01:00
|
|
|
VULKAN_SDK: C:\VulkanSDK\$(VULKAN_VER)
|
|
|
|
CACHE_DIR: ./cache
|
2020-11-23 00:07:21 +01:00
|
|
|
UPLOAD_COMMIT_HASH: 7d09e3be30805911226241afbb14f8cdc2eb054e
|
|
|
|
UPLOAD_REPO_FULL_NAME: "RPCS3/rpcs3-binaries-win"
|
2020-03-27 14:37:27 +01:00
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: "windows-latest"
|
|
|
|
|
|
|
|
steps:
|
2020-05-26 01:33:59 +02:00
|
|
|
- bash: .ci/get_keys-windows.sh
|
|
|
|
displayName: Get Cache Keys
|
|
|
|
|
2020-03-28 21:13:55 +01:00
|
|
|
- task: Cache@2
|
2020-03-27 14:37:27 +01:00
|
|
|
inputs:
|
2020-05-26 01:33:59 +02:00
|
|
|
key: $(Agent.OS) | $(COMPILER) | "$(QT_VER)" | $(VULKAN_SDK_SHA) | llvm.lock | glslang.lock
|
2020-03-27 14:37:27 +01:00
|
|
|
path: $(CACHE_DIR)
|
2020-05-26 01:33:59 +02:00
|
|
|
restoreKeys: |
|
|
|
|
$(Agent.OS) | $(COMPILER)
|
2020-03-27 14:37:27 +01:00
|
|
|
displayName: Cache
|
|
|
|
|
2020-04-07 04:53:23 +02:00
|
|
|
- bash: .ci/setup-windows.sh
|
2020-03-27 14:37:27 +01:00
|
|
|
displayName: Download and unpack dependencies
|
|
|
|
|
2020-04-07 04:53:23 +02:00
|
|
|
- bash: .ci/export-azure-vars.sh
|
2020-03-28 01:19:44 +01:00
|
|
|
displayName: Export Variables
|
|
|
|
|
2020-03-27 14:37:27 +01:00
|
|
|
- task: VSBuild@1
|
|
|
|
inputs:
|
|
|
|
solution: 'rpcs3.sln'
|
2020-05-23 02:04:58 +02:00
|
|
|
maximumCpuCount: true
|
2020-03-27 14:37:27 +01:00
|
|
|
platform: x64
|
2021-03-29 21:45:48 +02:00
|
|
|
configuration: 'Release'
|
2020-03-27 14:37:27 +01:00
|
|
|
displayName: Compile RPCS3
|
|
|
|
|
2020-04-07 04:53:23 +02:00
|
|
|
- bash: .ci/deploy-windows.sh
|
2020-03-27 14:37:27 +01:00
|
|
|
displayName: Pack up build artifacts
|
|
|
|
|
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
2020-06-08 03:31:12 +02:00
|
|
|
condition: succeeded()
|
|
|
|
artifact: RPCS3 for Windows
|
2020-03-27 14:37:27 +01:00
|
|
|
|
2023-08-30 19:09:23 +02:00
|
|
|
- bash: .ci/github-upload.sh
|
2023-08-30 18:56:18 +02: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 21:07:13 +02:00
|
|
|
|
2024-09-22 20:39:43 +02:00
|
|
|
- job: Mac_Build_x86_64
|
2023-10-03 20:17:41 +02:00
|
|
|
timeoutInMinutes: 180
|
2023-09-19 21:07:13 +02: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)
|
2024-09-25 19:24:55 +02:00
|
|
|
QT_VER: '6.7.3'
|
2023-09-19 21:07:13 +02:00
|
|
|
QT_VER_MAIN: '6'
|
2024-09-22 20:39:43 +02:00
|
|
|
LLVM_COMPILER_VER: '16'
|
2023-09-19 21:07:13 +02:00
|
|
|
|
|
|
|
pool:
|
2024-09-22 20:39:43 +02:00
|
|
|
vmImage: "macOS-13"
|
2023-09-19 21:07:13 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: Cache@2
|
|
|
|
inputs:
|
|
|
|
key: ccache | "$(Agent.OS)"
|
|
|
|
path: $(CCACHE_DIR)
|
|
|
|
restoreKeys: |
|
|
|
|
ccache | "$(Agent.OS)"
|
|
|
|
displayName: Ccache cache
|
|
|
|
|
|
|
|
- task: Cache@2
|
|
|
|
inputs:
|
2024-09-24 21:31:11 +02:00
|
|
|
key: qt | "$(Agent.OS)" | "$(Agent.OSArchitecture)" | "$(QT_VER)"
|
2023-09-19 21:07:13 +02:00
|
|
|
path: /tmp/Qt
|
|
|
|
restoreKeys: |
|
2024-09-24 21:31:11 +02:00
|
|
|
qt | "$(Agent.OS)" | "$(Agent.OSArchitecture)" | "$(QT_VER)"
|
2023-09-19 21:07:13 +02:00
|
|
|
displayName: Qt cache
|
|
|
|
|
2024-09-22 20:39:43 +02:00
|
|
|
# - task: Cache@2
|
|
|
|
# inputs:
|
|
|
|
# key: brew | "$(Agent.OS)"
|
|
|
|
# path: /Users/runner/Library/Caches/Homebrew
|
|
|
|
# restoreKeys: |
|
|
|
|
# brew | "$(Agent.OS)"
|
|
|
|
# displayName: Homebrew cache
|
2023-09-19 21:07:13 +02:00
|
|
|
|
|
|
|
- bash: |
|
|
|
|
chmod +x ".ci/build-mac.sh"
|
|
|
|
chmod +x ".ci/deploy-mac.sh"
|
2024-09-22 20:39:43 +02:00
|
|
|
chmod +x ".ci/optimize-mac.sh"
|
2023-09-19 21:07:13 +02:00
|
|
|
".ci/build-mac.sh"
|
2024-09-22 20:39:43 +02:00
|
|
|
displayName: Build macOS (x86_64)
|
|
|
|
|
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
|
|
|
condition: succeeded()
|
|
|
|
artifact: RPCS3 for Mac (Intel)
|
|
|
|
|
|
|
|
- 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)
|
|
|
|
|
|
|
|
- job: Mac_Build_arm64
|
|
|
|
timeoutInMinutes: 180
|
|
|
|
variables:
|
|
|
|
CCACHE_DIR: "/tmp/ccache_dir"
|
|
|
|
CCACHE_MAXSIZE: 300M
|
|
|
|
CI_HAS_ARTIFACTS: true
|
|
|
|
UPLOAD_COMMIT_HASH: 8e21bdbc40711a3fccd18fbf17b742348b0f4281
|
|
|
|
UPLOAD_REPO_FULL_NAME: "RPCS3/rpcs3-binaries-mac-arm64"
|
|
|
|
RELEASE_MESSAGE: "../GitHubReleaseMessage.txt"
|
|
|
|
ARTDIR: $(Build.ArtifactStagingDirectory)
|
2024-09-27 19:44:25 +02:00
|
|
|
QT_VER: '6.7.3'
|
2024-09-22 20:39:43 +02:00
|
|
|
QT_VER_MAIN: '6'
|
|
|
|
LLVM_COMPILER_VER: '16'
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: "macOS-13"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: Cache@2
|
|
|
|
inputs:
|
|
|
|
key: ccache | "$(Agent.OS)"
|
|
|
|
path: $(CCACHE_DIR)
|
|
|
|
restoreKeys: |
|
|
|
|
ccache | "$(Agent.OS)"
|
|
|
|
displayName: Ccache cache
|
|
|
|
|
|
|
|
- task: Cache@2
|
|
|
|
inputs:
|
2024-09-24 21:31:11 +02:00
|
|
|
key: qt | "$(Agent.OS)" | "$(Agent.OSArchitecture)" | "$(QT_VER)"
|
2024-09-22 20:39:43 +02:00
|
|
|
path: /tmp/Qt
|
|
|
|
restoreKeys: |
|
2024-09-24 21:31:11 +02:00
|
|
|
qt | "$(Agent.OS)" | "$(Agent.OSArchitecture)" | "$(QT_VER)"
|
2024-09-22 20:39:43 +02:00
|
|
|
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-arm64.sh"
|
|
|
|
chmod +x ".ci/deploy-mac-arm64.sh"
|
|
|
|
chmod +x ".ci/optimize-mac.sh"
|
|
|
|
".ci/build-mac-arm64.sh"
|
|
|
|
displayName: Build macOS (arm64)
|
2023-09-19 21:07:13 +02:00
|
|
|
|
|
|
|
- publish: $(Build.ArtifactStagingDirectory)
|
|
|
|
condition: succeeded()
|
2024-09-22 20:39:43 +02:00
|
|
|
artifact: RPCS3 for Mac (Apple Silicon)
|
2023-09-19 21:07:13 +02:00
|
|
|
|
|
|
|
- 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)
|