2020-05-01 18:16:41 +00:00
|
|
|
version: '{build}'
|
|
|
|
|
|
|
|
environment:
|
|
|
|
AWS_ACCESS_KEY_ID:
|
2021-11-14 03:16:11 +00:00
|
|
|
secure: WQRc7y9bDiWiLpjm9lXdw9Q7n4extWau3W1ztQdqMgU=
|
2020-05-01 18:16:41 +00:00
|
|
|
AWS_SECRET_ACCESS_KEY:
|
2021-11-14 03:16:11 +00:00
|
|
|
secure: pP+D6ZtfXLDcEnl8pk/n3KApaV1fdGns4VkSyebs0zHzCutlvWj7ee16PalCcnBY
|
2020-05-01 18:16:41 +00:00
|
|
|
AWS_S3_BUCKET_NAME:
|
2021-11-14 03:16:11 +00:00
|
|
|
secure: Bf3x1Iruxg+l3tp+an+g9oE36EHxvyWrE8GTJzZh4Ss=
|
2020-05-01 18:16:41 +00:00
|
|
|
|
|
|
|
matrix:
|
2022-11-04 18:38:28 +00:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
2020-05-01 18:16:41 +00:00
|
|
|
TR_ARCH: x86
|
2023-02-12 22:12:09 +00:00
|
|
|
QT_VERSION: '5'
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
|
|
|
TR_ARCH: x86
|
|
|
|
QT_VERSION: '6'
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
|
|
|
TR_ARCH: x64
|
|
|
|
QT_VERSION: '5'
|
2022-11-04 18:38:28 +00:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
2020-05-01 18:16:41 +00:00
|
|
|
TR_ARCH: x64
|
2023-02-12 22:12:09 +00:00
|
|
|
QT_VERSION: '6'
|
2020-05-01 18:16:41 +00:00
|
|
|
|
2022-11-12 20:27:15 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- main
|
|
|
|
- /^\d+\.\d+.*/
|
|
|
|
|
2020-05-01 18:16:41 +00:00
|
|
|
for:
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
2022-11-04 18:38:28 +00:00
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
2020-05-01 18:16:41 +00:00
|
|
|
|
|
|
|
clone_folder: '%SystemDrive%\%TR_ARCH%-project'
|
|
|
|
|
2023-02-11 13:56:08 +00:00
|
|
|
cache:
|
|
|
|
- '%SystemDrive%\%TR_ARCH%-ccache'
|
|
|
|
|
|
|
|
init:
|
|
|
|
- pwsh: |
|
|
|
|
$Env:APPVEYOR_SAVE_CACHE_ON_ERROR = 'true'
|
|
|
|
|
2020-05-01 18:16:41 +00:00
|
|
|
install:
|
|
|
|
- pwsh: |
|
|
|
|
$Version = git describe --tags --abbrev=10 --always
|
|
|
|
if ($Version -ne $Env:APPVEYOR_REPO_BRANCH) {
|
2021-10-17 11:04:18 +00:00
|
|
|
$Version += "-${Env:APPVEYOR_REPO_BRANCH}"
|
2020-05-01 18:16:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$BuildIndex = 0
|
|
|
|
appveyor UpdateBuild -Version $Version
|
|
|
|
while ($LastExitCode -ne 0) {
|
|
|
|
$BuildIndex += 1
|
|
|
|
appveyor UpdateBuild -Version "${Version}+${BuildIndex}"
|
|
|
|
}
|
|
|
|
|
|
|
|
git submodule update --init --recursive
|
|
|
|
|
2022-02-12 17:30:27 +00:00
|
|
|
choco install python3 --pre
|
2020-05-01 18:16:41 +00:00
|
|
|
choco install nasm
|
|
|
|
choco install jom
|
|
|
|
choco install wixtoolset --version 3.11.2
|
2024-01-11 06:55:36 +00:00
|
|
|
choco install ccache --version 4.8.3
|
2020-05-01 18:16:41 +00:00
|
|
|
|
|
|
|
Remove-Item -Path (Join-Path $Env:SystemDrive OpenSSL-Win32) -Recurse
|
|
|
|
Remove-Item -Path (Join-Path $Env:SystemDrive OpenSSL-Win64) -Recurse
|
|
|
|
|
|
|
|
Install-Module -Name SignPath
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- pwsh: |
|
|
|
|
$Env:PATH = @(
|
2022-03-12 15:49:39 +00:00
|
|
|
(Join-Path $Env:SystemDrive Strawberry perl bin)
|
2020-05-01 18:16:41 +00:00
|
|
|
(Join-Path $Env:ProgramFiles NASM)
|
|
|
|
(Join-Path ${Env:ProgramFiles(x86)} 'WiX Toolset v3.11' bin)
|
|
|
|
$Env:PATH
|
|
|
|
) -join [System.IO.Path]::PathSeparator
|
|
|
|
|
2023-02-11 13:56:08 +00:00
|
|
|
$Env:CCACHE_DIR = "${Env:SystemDrive}\${Env:TR_ARCH}-ccache"
|
|
|
|
$Env:CCACHE_MAXSIZE = '500Mi'
|
|
|
|
|
2020-05-01 18:16:41 +00:00
|
|
|
Set-ExecutionPolicy -Scope Process Bypass
|
|
|
|
|
|
|
|
try {
|
|
|
|
& (Join-Path $Env:APPVEYOR_BUILD_FOLDER release windows main.ps1) `
|
|
|
|
-Mode Build `
|
2021-10-16 23:23:48 +00:00
|
|
|
-BuildArch $env:TR_ARCH `
|
2023-02-11 13:56:08 +00:00
|
|
|
-CCachePart App `
|
2023-02-12 22:12:09 +00:00
|
|
|
-UseQtVersion $Env:QT_VERSION `
|
2022-01-13 22:03:59 +00:00
|
|
|
-PackDebugSyms:$($Env:APPVEYOR_REPO_BRANCH -eq "main" -or $Env:APPVEYOR_REPO_TAG -eq "true")
|
2020-05-01 18:16:41 +00:00
|
|
|
} catch {
|
|
|
|
Write-Error ("{1}{0}{2}{0}{3}" -f [Environment]::NewLine, $_.ToString(), $_.InvocationInfo.PositionMessage, $_.ScriptStackTrace) -ErrorAction Continue
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- pwsh: |
|
|
|
|
Set-ExecutionPolicy -Scope Process Bypass
|
|
|
|
|
|
|
|
try {
|
|
|
|
& (Join-Path $Env:APPVEYOR_BUILD_FOLDER release windows main.ps1) `
|
|
|
|
-Mode Test `
|
|
|
|
-BuildArch $env:TR_ARCH
|
|
|
|
} catch {
|
|
|
|
Write-Error ("{1}{0}{2}{0}{3}" -f [Environment]::NewLine, $_.ToString(), $_.InvocationInfo.PositionMessage, $_.ScriptStackTrace) -ErrorAction Continue
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: '*.msi'
|
2021-10-05 17:30:27 +00:00
|
|
|
- path: '*-pdb.7z'
|
2020-05-01 18:16:41 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
- provider: Webhook
|
2020-05-14 16:20:07 +00:00
|
|
|
url: https://app.signpath.io/API/v1/8c96c8c9-a72c-4b46-a53c-80aad617f6bc/Integrations/AppVeyor?ProjectKey=transmission&SigningPolicyKey=release-signing
|
2020-05-01 18:16:41 +00:00
|
|
|
authorization:
|
|
|
|
secure: PrvcykaHmPgJ0ENht1q58tCfjRcmybiOeHYrvtQtAGsfahWvniAfP66DqHxv872acpyf3FpJn2ETCeszoVuFGA==
|
|
|
|
on:
|
|
|
|
APPVEYOR_REPO_TAG: true
|