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:
|
2019-08-10 07:45:59 +00:00
|
|
|
QTDIR: C:\Qt\5.13\msvc2017_64
|
2019-08-22 12:13:59 +00:00
|
|
|
QT_URL: https://cdn.discordapp.com/attachments/442667232489897997/614126952953020416/msvc2017_64.7z
|
2018-06-27 18:19:02 +00:00
|
|
|
LLVMLIBS: https://github.com/RPCS3/llvm/releases/download/continuous-master/llvmlibs.7z
|
2019-05-28 13:37:32 +00:00
|
|
|
GLSLANG: https://dl.dropboxusercontent.com/s/ku2qgwmtfptzbvx/glslang.7z
|
2018-02-02 02:28:32 +00:00
|
|
|
COMPATDB: https://rpcs3.net/compatibility?api=v1&export
|
2019-06-02 07:44:05 +00:00
|
|
|
VULKAN_SDK: "C:\\VulkanSDK\\1.1.106.0"
|
|
|
|
VULKAN_SDK_URL: https://sdk.lunarg.com/sdk/download/1.1.106.0/windows/VulkanSDK-1.1.106.0-Installer.exe
|
|
|
|
VULKAN_SDK_SHA: 24b5c9d415912c0fb07f973f10f671a488b0e33ca991409bcabf1d4bebf0b804
|
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
|
2019-08-22 12:13:59 +00:00
|
|
|
- msvc2017_64.7z -> 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
|
2018-02-24 19:54:58 +00:00
|
|
|
$env:COMM_TAG = $(git describe --tags $(git rev-list --tags --max-count=1))
|
|
|
|
$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) {
|
2018-02-24 19:54:58 +00:00
|
|
|
$env:BUILD = "rpcs3-{0}-{1}_win64.7z" -f $env:COMM_TAG, $env:COMM_HASH
|
|
|
|
$env:AVVER = "{0}-{1}" -f $env:COMM_TAG.TrimStart("v"), $env:COMM_HASH
|
2018-02-23 19:41:05 +00:00
|
|
|
}
|
|
|
|
else {
|
2018-02-24 19:54:58 +00:00
|
|
|
$env:BUILD = "rpcs3-{0}-{1}-{2}_win64.7z" -f $env:COMM_TAG, $env:COMM_COUNT, $env:COMM_HASH
|
|
|
|
$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 `
|
|
|
|
3rdparty/GSL `
|
|
|
|
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 `
|
|
|
|
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 }
|
2019-08-22 12:13:59 +00:00
|
|
|
if (!(test-path msvc2017_64.7z)) { irm $env:QT_URL -outfile msvc2017_64.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
|
2019-08-22 12:13:59 +00:00
|
|
|
7z x msvc2017_64.7z -aos -o"C:\Qt\5.13" | 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
|
2018-05-31 23:59:44 +00:00
|
|
|
$env:FILESIZEMB = (Get-Item $env:BUILD).length/1MB
|
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
|
|
|
|
description: "$(SHA256SUM);$(FILESIZEMB)MB"
|
|
|
|
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
|