2017-10-14 09:59:12 +02:00
|
|
|
|
2018-02-02 03:20:03 +01:00
|
|
|
version: '{build}'
|
2017-01-30 23:16:47 +01:00
|
|
|
|
2017-10-14 09:59:12 +02:00
|
|
|
image: Visual Studio 2015
|
|
|
|
|
|
|
|
environment:
|
2018-03-13 00:40:29 +01:00
|
|
|
QTDIR: C:\Qt\5.10\msvc2015_64
|
2018-05-01 12:20:36 +02:00
|
|
|
LLVMLIBS: https://github.com/RPCS3/llvm/releases/download/continuous-release_60/llvmlibs.7z
|
2018-02-02 02:56:45 +01:00
|
|
|
VULKAN: https://drive.google.com/uc?export=download&id=1A2eOMmCO714i0U7J0qI4aEMKnuWl8l_R
|
2018-02-02 03:28:32 +01:00
|
|
|
COMPATDB: https://rpcs3.net/compatibility?api=v1&export
|
2017-10-14 09:59:12 +02:00
|
|
|
|
|
|
|
cache:
|
2018-02-02 03:28:32 +01:00
|
|
|
- vulkan.7z -> appveyor.yml
|
|
|
|
- compat_database.dat
|
2017-10-14 09:59:12 +02:00
|
|
|
|
|
|
|
install:
|
2018-02-03 02:00:45 +01:00
|
|
|
- ps: | # set env vars for versioning
|
2018-02-24 20:54:58 +01:00
|
|
|
$env:COMM_TAG = $(git describe --tags $(git rev-list --tags --max-count=1))
|
|
|
|
$env:COMM_COUNT = $(git rev-list --count HEAD)
|
|
|
|
$env:COMM_HASH = $env:APPVEYOR_REPO_COMMIT.Substring(0,8)
|
2018-05-01 12:20:36 +02:00
|
|
|
|
2018-02-23 20:41:05 +01:00
|
|
|
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
|
2018-02-24 20:54:58 +01: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 20:41:05 +01:00
|
|
|
}
|
|
|
|
else {
|
2018-02-24 20:54:58 +01: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 20:41:05 +01:00
|
|
|
}
|
2018-02-02 03:20:03 +01:00
|
|
|
|
2018-02-02 03:05:36 +01: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 23:38:56 +01:00
|
|
|
- ps: | # misc global settings
|
|
|
|
$env:PATH += $env:QTDIR
|
|
|
|
[net.servicepointmanager]::securityprotocol = "tls12, tls11, tls"
|
2018-02-02 03:05:36 +01:00
|
|
|
|
|
|
|
- ps: | # update and init submodules
|
|
|
|
git submodule -q update --init `
|
|
|
|
3rdparty/cereal `
|
|
|
|
3rdparty/ffmpeg `
|
|
|
|
3rdparty/GSL `
|
|
|
|
3rdparty/hidapi `
|
|
|
|
3rdparty/libpng `
|
|
|
|
3rdparty/Optional `
|
|
|
|
3rdparty/pugixml `
|
2018-05-13 11:18:05 +02:00
|
|
|
3rdparty/xxHash `
|
2018-02-02 03:05:36 +01:00
|
|
|
3rdparty/zlib `
|
|
|
|
asmjit `
|
|
|
|
Utilities/yaml-cpp `
|
|
|
|
Vulkan/glslang `
|
|
|
|
Vulkan/Vulkan-LoaderAndValidationLayers
|
2017-10-14 09:59:12 +02:00
|
|
|
|
2015-08-03 21:07:12 +02:00
|
|
|
platform: x64
|
2015-08-04 18:57:41 +02:00
|
|
|
|
2017-10-14 09:59:12 +02:00
|
|
|
configuration: Release - LLVM
|
2017-01-30 23:16:47 +01:00
|
|
|
|
2017-10-14 09:59:12 +02:00
|
|
|
build:
|
2018-02-02 02:54:11 +01:00
|
|
|
parallel: true
|
|
|
|
project: rpcs3.sln
|
2017-10-14 09:59:12 +02:00
|
|
|
verbosity: normal
|
|
|
|
|
2015-08-03 21:07:12 +02:00
|
|
|
before_build:
|
2018-02-02 05:17:13 +01:00
|
|
|
- ps: | # fetch precompiled build dependencies
|
|
|
|
if (!(test-path llvmlibs.7z)) { irm $env:LLVMLIBS -outfile llvmlibs.7z }
|
|
|
|
if (!(test-path vulkan.7z)) { irm $env:VULKAN -outfile vulkan.7z }
|
|
|
|
7z x llvmlibs.7z -aos -o"." | out-null
|
|
|
|
7z x vulkan.7z -aos -o".\lib\$env:CONFIGURATION-$env:PLATFORM" | out-null
|
2015-08-04 18:23:35 +02:00
|
|
|
|
2018-02-02 03:20:03 +01:00
|
|
|
after_build:
|
2018-02-02 03:22:16 +01:00
|
|
|
- ps: | # remove unnecessary files
|
|
|
|
rm .\bin\rpcs3.exp, .\bin\rpcs3.lib, .\bin\rpcs3.pdb
|
|
|
|
|
2018-02-02 03:28:32 +01:00
|
|
|
- ps: | # prepare compatibility database for packaging
|
2018-02-02 23:38:56 +01:00
|
|
|
$db = irm $env:COMPATDB -erroraction silentlycontinue
|
2018-02-02 03:28:32 +01:00
|
|
|
if ($db -and $db.return_code -eq 0) {
|
2018-02-02 23:38:56 +01:00
|
|
|
$db | convertto-json -compress | out-file compat_database.dat -encoding utf8
|
2018-02-02 03:28:32 +01:00
|
|
|
}
|
|
|
|
copy-item compat_database.dat .\bin\GuiConfigs\compat_database.dat
|
|
|
|
|
2018-02-02 03:20:03 +01:00
|
|
|
- ps: | # package artifacts
|
2018-02-24 20:54:58 +01:00
|
|
|
7z a -m0=LZMA2 -mx9 $env:BUILD .\bin\*
|
2018-02-02 23:41:39 +01:00
|
|
|
7z a -m0=LZMA2 -mx9 openssl_win64.7z C:\OpenSSL-Win64\bin\libeay32.dll `
|
|
|
|
C:\OpenSSL-Win64\bin\ssleay32.dll
|
2018-02-02 03:20:03 +01:00
|
|
|
|
2018-02-04 22:29:56 +01:00
|
|
|
- ps: | # generate sha256 hashes
|
2018-02-24 20:54:58 +01:00
|
|
|
(get-filehash $env:BUILD -algorithm SHA256).Hash | out-file ("{0}.sha256" -f $env:BUILD) -encoding ascii
|
|
|
|
(get-filehash openssl_win64.7z -algorithm SHA256).Hash | out-file "openssl_win64.7z.sha256" -encoding ascii
|
2018-02-04 22:29:56 +01:00
|
|
|
|
2017-10-14 09:59:12 +02:00
|
|
|
test: off
|
|
|
|
|
2015-08-09 21:05:16 +02:00
|
|
|
artifacts:
|
2018-02-24 20:54:58 +01:00
|
|
|
- path: $(BUILD)
|
2018-02-02 03:20:03 +01:00
|
|
|
name: rpcs3
|
2018-02-24 20:54:58 +01:00
|
|
|
- path: $(BUILD).sha256
|
2018-02-04 22:29:56 +01:00
|
|
|
name: rpcs3 sha256 hash
|
2018-02-02 03:23:53 +01:00
|
|
|
- path: openssl_win64.7z
|
2018-02-03 02:00:45 +01:00
|
|
|
name: openssl
|
2018-02-04 22:29:56 +01:00
|
|
|
- path: openssl_win64.7z.sha256
|
|
|
|
name: openssl sha256 hash
|
2018-02-03 02:00:45 +01:00
|
|
|
|
2018-05-01 12:20:36 +02:00
|
|
|
on_finish:
|
2018-02-03 02:00:45 +01:00
|
|
|
- ps: | # update appveyor build version, done last to prevent webhook breakage
|
|
|
|
update-appveyorbuild -version $env:AVVER
|