2017-10-14 07:59:12 +00:00
|
|
|
|
2018-02-02 02:20:03 +00:00
|
|
|
version: '{build}'
|
2017-01-30 22:16:47 +00:00
|
|
|
|
2019-08-22 12:13:59 +00:00
|
|
|
image: Visual Studio 2019
|
2017-10-14 07:59:12 +00:00
|
|
|
|
|
|
|
environment:
|
2020-01-11 08:08:13 +00:00
|
|
|
QTDIR: C:\Qt\5.14\msvc2017_64
|
2020-02-24 17:39:39 +00:00
|
|
|
LLVMLIBS: https://github.com/RPCS3/llvm-mirror/releases/download/custom-build-win/llvmlibs.7z
|
2020-01-03 22:50:28 +00:00
|
|
|
GLSLANG: https://www.dropbox.com/s/6e8w6t5dxh3ad4l/glslang.7z?dl=1
|
2018-02-02 02:28:32 +00:00
|
|
|
COMPATDB: https://rpcs3.net/compatibility?api=v1&export
|
2019-12-20 12:29:48 +00:00
|
|
|
VULKAN_SDK: "C:\\VulkanSDK\\1.1.126.0"
|
|
|
|
VULKAN_SDK_URL: https://sdk.lunarg.com/sdk/download/1.1.126.0/windows/VulkanSDK-1.1.126.0-Installer.exe
|
|
|
|
VULKAN_SDK_SHA: ee86f25580b550390ce46508415e744d62e87e9c0de6cd299998058253a2a4ba
|
2017-10-14 07:59:12 +00:00
|
|
|
|
|
|
|
cache:
|
2018-04-29 11:33:15 +00:00
|
|
|
- glslang.7z -> appveyor.yml
|
2018-02-02 02:28:32 +00:00
|
|
|
- compat_database.dat
|
2018-04-29 11:33:15 +00:00
|
|
|
- vulkan-sdk.exe -> appveyor.yml
|
2017-10-14 07:59:12 +00:00
|
|
|
|
|
|
|
install:
|
2018-02-03 01:00:45 +00:00
|
|
|
- ps: | # set env vars for versioning
|
2019-09-17 20:17:20 +00:00
|
|
|
$env:COMM_TAG = $(Get-Content ./rpcs3/rpcs3_version.cpp | findstr 'version{.*}' | %{ $ver = $_ -split "[{,]"; "{0}.{1}.{2}" -f [int]$ver[1],[int]$ver[2],[int]$ver[3]; })
|
2018-02-24 19:54:58 +00:00
|
|
|
$env:COMM_COUNT = $(git rev-list --count HEAD)
|
2018-08-27 18:53:45 +00:00
|
|
|
$env:COMM_HASH = $(git rev-parse --short=8 HEAD)
|
2018-05-01 10:20:36 +00:00
|
|
|
|
2018-02-23 19:41:05 +00:00
|
|
|
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
|
2019-09-17 20:17:20 +00:00
|
|
|
$env:BUILD = "rpcs3-v{0}-{1}_win64.7z" -f $env:COMM_TAG, $env:COMM_HASH
|
2018-02-24 19:54:58 +00:00
|
|
|
$env:AVVER = "{0}-{1}" -f $env:COMM_TAG.TrimStart("v"), $env:COMM_HASH
|
2018-02-23 19:41:05 +00:00
|
|
|
}
|
|
|
|
else {
|
2019-09-17 20:17:20 +00:00
|
|
|
$env:BUILD = "rpcs3-v{0}-{1}-{2}_win64.7z" -f $env:COMM_TAG, $env:COMM_COUNT, $env:COMM_HASH
|
2018-02-24 19:54:58 +00:00
|
|
|
$env:AVVER = "{0}-{1}" -f $env:COMM_TAG.TrimStart("v"), $env:COMM_COUNT
|
2018-02-23 19:41:05 +00:00
|
|
|
}
|
2018-02-02 02:20:03 +00:00
|
|
|
|
2018-02-02 02:05:36 +00:00
|
|
|
- ps: | # used for experimental build warnings for pr builds
|
|
|
|
$env:BRANCH = "{0}/{1}/#{2}" -f $env:APPVEYOR_REPO_NAME, `
|
|
|
|
$env:APPVEYOR_REPO_BRANCH, $env:APPVEYOR_PULL_REQUEST_NUMBER
|
|
|
|
$env:BRANCH = $env:BRANCH -replace "/#$"
|
|
|
|
|
2018-02-02 22:38:56 +00:00
|
|
|
- ps: | # misc global settings
|
|
|
|
$env:PATH += $env:QTDIR
|
|
|
|
[net.servicepointmanager]::securityprotocol = "tls12, tls11, tls"
|
2018-02-02 02:05:36 +00:00
|
|
|
|
|
|
|
- ps: | # update and init submodules
|
|
|
|
git submodule -q update --init `
|
|
|
|
3rdparty/cereal `
|
|
|
|
3rdparty/ffmpeg `
|
2019-11-09 15:43:10 +00:00
|
|
|
3rdparty/span `
|
2018-02-02 02:05:36 +00:00
|
|
|
3rdparty/hidapi `
|
|
|
|
3rdparty/libpng `
|
2019-02-02 13:48:21 +00:00
|
|
|
3rdparty/libusb `
|
2018-02-02 02:05:36 +00:00
|
|
|
3rdparty/pugixml `
|
2018-05-13 09:18:05 +00:00
|
|
|
3rdparty/xxHash `
|
2018-03-24 21:16:05 +00:00
|
|
|
3rdparty/yaml-cpp `
|
2018-02-02 02:05:36 +00:00
|
|
|
3rdparty/zlib `
|
2019-10-24 19:26:29 +00:00
|
|
|
3rdparty/FAudio `
|
2018-02-02 02:05:36 +00:00
|
|
|
asmjit `
|
2018-04-29 11:33:15 +00:00
|
|
|
Vulkan/glslang
|
2017-10-14 07:59:12 +00:00
|
|
|
|
2015-08-03 19:07:12 +00:00
|
|
|
platform: x64
|
2015-08-04 16:57:41 +00:00
|
|
|
|
2017-10-14 07:59:12 +00:00
|
|
|
configuration: Release - LLVM
|
2017-01-30 22:16:47 +00:00
|
|
|
|
2017-10-14 07:59:12 +00:00
|
|
|
build:
|
2018-02-02 01:54:11 +00:00
|
|
|
parallel: true
|
|
|
|
project: rpcs3.sln
|
2017-10-14 07:59:12 +00:00
|
|
|
verbosity: normal
|
|
|
|
|
2015-08-03 19:07:12 +00:00
|
|
|
before_build:
|
2018-05-23 19:36:47 +00:00
|
|
|
- ps: | # initialize mirror arrays and fetch precompiled build dependencies
|
|
|
|
$VULKAN_SDK_URLS = @(
|
|
|
|
$env:VULKAN_SDK_URL;
|
|
|
|
"$($env:VULKAN_SDK_URL)?Human=true";
|
|
|
|
)
|
2018-02-02 04:17:13 +00:00
|
|
|
if (!(test-path llvmlibs.7z)) { irm $env:LLVMLIBS -outfile llvmlibs.7z }
|
2018-04-29 11:33:15 +00:00
|
|
|
if (!(test-path glslang.7z)) { irm $env:GLSLANG -outfile glslang.7z }
|
2018-02-02 04:17:13 +00:00
|
|
|
7z x llvmlibs.7z -aos -o"." | out-null
|
2018-04-29 11:33:15 +00:00
|
|
|
7z x glslang.7z -aos -o".\lib\$env:CONFIGURATION-$env:PLATFORM" | out-null
|
2018-03-24 21:16:05 +00:00
|
|
|
if (!(test-path vulkan-sdk.exe))
|
2018-05-23 19:36:47 +00:00
|
|
|
{
|
|
|
|
foreach ($url in $VULKAN_SDK_URLS) {
|
2018-03-24 21:16:05 +00:00
|
|
|
irm $url -outfile vulkan-sdk.exe
|
|
|
|
if ($env:VULKAN_SDK_SHA -eq $(Get-FileHash .\vulkan-sdk.exe).Hash)
|
2018-05-23 18:38:44 +00:00
|
|
|
{
|
2018-05-23 19:36:47 +00:00
|
|
|
echo "Successfully downloaded and verified vulkan-sdk.exe!"
|
|
|
|
break
|
2018-05-23 18:38:44 +00:00
|
|
|
}
|
2018-03-24 21:16:05 +00:00
|
|
|
else
|
2018-05-23 18:38:44 +00:00
|
|
|
{
|
2018-05-23 19:36:47 +00:00
|
|
|
echo "Invalid file hash, Vulkan SDK Setup was possibly tampered with, retrying with a different mirror..."
|
2018-05-23 18:38:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-04-29 11:33:15 +00:00
|
|
|
.\vulkan-sdk.exe /S
|
2015-08-04 16:23:35 +00:00
|
|
|
|
2018-02-02 02:20:03 +00:00
|
|
|
after_build:
|
2018-02-02 02:22:16 +00:00
|
|
|
- ps: | # remove unnecessary files
|
|
|
|
rm .\bin\rpcs3.exp, .\bin\rpcs3.lib, .\bin\rpcs3.pdb
|
|
|
|
|
2018-02-02 02:28:32 +00:00
|
|
|
- ps: | # prepare compatibility database for packaging
|
2018-02-02 22:38:56 +00:00
|
|
|
$db = irm $env:COMPATDB -erroraction silentlycontinue
|
2018-02-02 02:28:32 +00:00
|
|
|
if ($db -and $db.return_code -eq 0) {
|
2018-02-02 22:38:56 +00:00
|
|
|
$db | convertto-json -compress | out-file compat_database.dat -encoding utf8
|
2018-02-02 02:28:32 +00:00
|
|
|
}
|
|
|
|
copy-item compat_database.dat .\bin\GuiConfigs\compat_database.dat
|
|
|
|
|
2018-02-02 02:20:03 +00:00
|
|
|
- ps: | # package artifacts
|
2018-02-24 19:54:58 +00:00
|
|
|
7z a -m0=LZMA2 -mx9 $env:BUILD .\bin\*
|
2019-08-25 23:59:10 +00:00
|
|
|
7z a -m0=LZMA2 -mx9 openssl_win64.7z C:\OpenSSL-v111-Win64\bin\libcrypto-1_1-x64.dll `
|
|
|
|
C:\OpenSSL-v111-Win64\bin\libssl-1_1-x64.dll
|
2019-09-16 01:24:06 +00:00
|
|
|
$env:FILESIZE = (Get-Item $env:BUILD).length
|
2018-02-02 02:20:03 +00:00
|
|
|
|
2018-02-04 21:29:56 +00:00
|
|
|
- ps: | # generate sha256 hashes
|
2018-02-24 19:54:58 +00:00
|
|
|
(get-filehash $env:BUILD -algorithm SHA256).Hash | out-file ("{0}.sha256" -f $env:BUILD) -encoding ascii
|
2018-05-31 23:59:44 +00:00
|
|
|
$env:SHA256SUM = (get-filehash $env:BUILD -algorithm SHA256).Hash
|
2018-02-24 19:54:58 +00:00
|
|
|
(get-filehash openssl_win64.7z -algorithm SHA256).Hash | out-file "openssl_win64.7z.sha256" -encoding ascii
|
2018-02-04 21:29:56 +00:00
|
|
|
|
2017-10-14 07:59:12 +00:00
|
|
|
test: off
|
|
|
|
|
2015-08-09 19:05:16 +00:00
|
|
|
artifacts:
|
2018-02-24 19:54:58 +00:00
|
|
|
- path: $(BUILD)
|
2018-02-02 02:20:03 +00:00
|
|
|
name: rpcs3
|
2018-02-24 19:54:58 +00:00
|
|
|
- path: $(BUILD).sha256
|
2018-02-04 21:29:56 +00:00
|
|
|
name: rpcs3 sha256 hash
|
2018-02-02 02:23:53 +00:00
|
|
|
- path: openssl_win64.7z
|
2018-02-03 01:00:45 +00:00
|
|
|
name: openssl
|
2018-02-04 21:29:56 +00:00
|
|
|
- path: openssl_win64.7z.sha256
|
|
|
|
name: openssl sha256 hash
|
2018-06-27 18:19:02 +00:00
|
|
|
|
2018-05-31 23:59:44 +00:00
|
|
|
deploy:
|
|
|
|
provider: GitHub
|
|
|
|
# Description is a semi-colon seperated list for easy parsing
|
2019-09-16 01:24:06 +00:00
|
|
|
description: "$(SHA256SUM);$(FILESIZE)B"
|
2018-05-31 23:59:44 +00:00
|
|
|
tag: build-$(APPVEYOR_REPO_COMMIT)
|
|
|
|
release: $(AVVER)
|
|
|
|
artifact: $(BUILD)
|
|
|
|
repository: RPCS3/rpcs3-binaries-win
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
|
|
|
force_update: true
|
|
|
|
auth_token:
|
|
|
|
secure: gTZqN6J9QNQTv9vu2qtExWk1x4o9dSfyTH/y86Yhe3qu+2w6Mly1MaDFMaXgrN1e
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
appveyor_repo_name: RPCS3/rpcs3
|
2018-02-03 01:00:45 +00:00
|
|
|
|
2018-06-01 17:36:34 +00:00
|
|
|
on_success:
|
2018-02-03 01:00:45 +00:00
|
|
|
- ps: | # update appveyor build version, done last to prevent webhook breakage
|
|
|
|
update-appveyorbuild -version $env:AVVER
|