-
Notifications
You must be signed in to change notification settings - Fork 115
/
appveyor.yml
48 lines (46 loc) · 2.8 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: 1.0.{build}
branches:
only:
- master
- develop
- /^\d+\.?\d+\.?\d*$/
skip_tags: false
image: Visual Studio 2019
platform: x64
clone_depth: 1
environment:
encrypted_deploy_key:
secure: ++30FOn93CZGPrm6JMlLQe2A5CDBmwsL4nDAlUlbgLGhDhMCfSe8oz5uvLFdsW2M8+plXilRBWvo/bdfITBHvxOtbHN7kNKRNuUY2z2z4lLy+1mYK5YG33DDkrgMokq3n5keLCh4Z9oTEBQkz+S4GQ==
artifact_32_bit: Projects\VisualStudio2019\Win32\Release32\App\Helio.exe
artifact_64_bit: Projects\VisualStudio2019\x64\Release64\App\Helio.exe
artifact_installer: Projects\Deployment\Windows\installer.exe
deploy_host: [email protected]
deploy_path: /opt/musehackers/files/ci
install:
- SET PATH=%PATH%;C:\Program Files (x86)\Windows Kits\10\bin\x64\
- cmd: git submodule update --init --depth 1 --recursive 2> $null
- ps: >-
Push-Location ($PSScriptRoot + "\projects\helio-sequencer\ThirdParty\ASIO\")
& ".\get_asio_sdk.ps1"
Pop-Location
- ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
- cmd: appveyor-tools\secure-file -decrypt Projects\Deployment\AppVeyor\deploy-rsa.enc -secret %encrypted_deploy_key% -out deploy-rsa
cache: ThirdParty\ASIO
# A hack
build: off
test_script:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 && ECHO "x64 building..." && msbuild Projects\VisualStudio2019\Helio.sln /t:Build /p:Configuration=Release64;Platform=x64
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86 && ECHO "x32 building..." && msbuild Projects\VisualStudio2019\Helio.sln /t:Build /p:Configuration=Release32;Platform=Win32
- if /I "%APPVEYOR_REPO_TAG%" == "false" set APPVEYOR_REPO_TAG_NAME=dev
deploy_script:
# 64-bit portable version
- 7z a portable-x64.zip "%APPVEYOR_BUILD_FOLDER%\%artifact_64_bit%"
- C:\msys64\usr\bin\bash --login -c "scp -o StrictHostKeyChecking=no -i /c/projects/helio-sequencer/deploy-rsa -C /c/projects/helio-sequencer/portable-x64.zip %deploy_host%:%deploy_path%/helio-%APPVEYOR_REPO_TAG_NAME%-x64.zip"
# 32-bit portable version
- 7z a portable-x32.zip "%APPVEYOR_BUILD_FOLDER%\%artifact_32_bit%"
- C:\msys64\usr\bin\bash --login -c "scp -o StrictHostKeyChecking=no -i /c/projects/helio-sequencer/deploy-rsa -C /c/projects/helio-sequencer/portable-x32.zip %deploy_host%:%deploy_path%/helio-%APPVEYOR_REPO_TAG_NAME%-x32.zip"
# installer containing both versions
- set PATH=%PATH%;"C:\\Program Files (x86)\\Inno Setup 6"
- iscc "%APPVEYOR_BUILD_FOLDER%\Projects\Deployment\Windows\setup.iss"
- copy %artifact_installer% .\installer.exe
- C:\msys64\usr\bin\bash --login -c "scp -o StrictHostKeyChecking=no -i /c/projects/helio-sequencer/deploy-rsa -C /c/projects/helio-sequencer/installer.exe %deploy_host%:%deploy_path%/helio-%APPVEYOR_REPO_TAG_NAME%.exe"