forked from reaper-oss/sws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
100 lines (92 loc) · 6.89 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
version: "{build}-{branch}"
before_build:
- curl -fsSL https://gist.github.com/cfillion/da355e8278048de08ae065d6fe6031c1/raw/reaper_plugin_functions.h -o vendor/reaper_plugin_functions.h
- git submodule update --init
for:
- matrix: { only: [ APPVEYOR_BUILD_WORKER_IMAGE: &linux Ubuntu1804 ] }
install:
- sudo apt-get update -qq
- sudo apt-get install -qq --no-install-recommends php
- |-
case $ARCH in
i686)
sudo apt-get install -qq g++-multilib &&
export TOOLCHAIN=../cmake/linux-cross.cmake \
TOOLCHAIN_PREFIX=i386-linux-gnu
;;
armv7l)
sudo apt-get install -qq g++-arm-linux-gnueabihf &&
export TOOLCHAIN=../cmake/linux-cross.cmake \
TOOLCHAIN_PREFIX=arm-linux-gnueabihf
;;
aarch64)
sudo apt-get install -qq g++-aarch64-linux-gnu &&
export TOOLCHAIN=../cmake/linux-cross.cmake \
TOOLCHAIN_PREFIX=aarch64-linux-gnu
;;
esac
build_script:
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN
- cmake --build .
- cpack
deploy_script: |-
if [ "$APPVEYOR_REPO_BRANCH" == "master" ] && [ -n "$DEPLOY_KEY" ]; then
echo "$DEPLOY_KEY" | base64 -d > deploy_key && chmod 600 deploy_key &&
scp -i deploy_key -o StrictHostKeyChecking=NO -q sws*.tar.xz \
[email protected]:/var/www/standingwaterstudios.com/public_html/download/pre-release
fi
artifacts:
- path: build/sws*.tar.xz
- matrix: { only: [ APPVEYOR_BUILD_WORKER_IMAGE: &windows Visual Studio 2019 ] }
install:
- '"%ProgramFiles(x86)%\NSIS\uninst-nsis.exe" /S'
- choco install -y nsis-unicode php
- refreshenv
- curl -fsSLO https://nsis.sourceforge.io/mediawiki/images/1/18/NsProcess.zip
- 7z e nsProcess.zip -o"%ProgramFiles(x86)%\NSIS\Unicode\Plugins" nsProcessW.dll -r
- if "%ARCH%" == "x64" call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- if "%ARCH%" == "x86" call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
build_script:
- mkdir build && cd build
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
- cmake --build . --target all langpack whatsnew
- cpack
deploy_script:
- ps: |-
if($env:APPVEYOR_REPO_BRANCH -eq "master" -And $env:DEPLOY_KEY -ne $null) {
$bytes = [System.Convert]::FromBase64String($env:DEPLOY_KEY)
[System.IO.File]::WriteAllBytes("$($PWD)\deploy_key", $bytes)
scp -i deploy_key -o StrictHostKeyChecking=NO -q sws*.exe version.h `
BuildUtils/SWS_Template.ReaperLangPack BuildUtils/whatsnew.html `
[email protected]:/var/www/standingwaterstudios.com/public_html/download/pre-release
}
artifacts:
- path: build\sws*.exe
- path: build\reaper_sws*.pdb
- path: build\BuildUtils\SWS_Template.ReaperLangPack
- path: build\BuildUtils\whatsnew.html
environment:
matrix:
- { APPVEYOR_BUILD_WORKER_IMAGE: *windows, ARCH: x64 }
- { APPVEYOR_BUILD_WORKER_IMAGE: *windows, ARCH: x86 }
- { APPVEYOR_BUILD_WORKER_IMAGE: *linux, ARCH: x86_64 }
- { APPVEYOR_BUILD_WORKER_IMAGE: *linux, ARCH: i686 }
- { APPVEYOR_BUILD_WORKER_IMAGE: *linux, ARCH: armv7l }
- { APPVEYOR_BUILD_WORKER_IMAGE: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GHrmNpA5QgLsyYK/PNwWc3XAp942lTa/nDCEQUEVpXUJz4/iVXIN88+piu2EtA1Qu7lM2gwN1FV/fsc6P9WU0CmkFXnRiz7hNTanNlOGK0T2fYX0eJhz+CKFlpS76J8LRPhwSRQzKTwJxT+quE/h8GYo4T2cKf4GAZH1BxUXLn3IG75mUn4tNNxgNcNnZITHoJX/wkcFmY2fjc5yjo6L94hjf6JPXqgfO8ADDWX32BAfRO0aPh0I7x2rbT0jywTwtAIfjg7TNpFhlxzfwx371zXLB5IsB7LhZ1eDt5QFphNYTvlGzYzJ/VUWcgMHHT6qvJjwDhfp30y35uokJS20ihGLU9UtRnw3CGLZxP1u2qG8rIcsGPd/1ahsglpXvRjBq2CLuAZIxB1RpKgZzsym696x5PiStogY9k7T2yCDKBZWbazBbvDMHznVefwRsXd70lFH7BEklQQwap2z74WeQ4MMr47XeTYFUvmB/tLF5hn01ef9ZJZcQxywe8zHN1ZCinJNzf1e65Ll4doOqI9X4ho75BejZl5OrFktEHOGAteIxkpAinpYdvmAfgXuVitH5VUxX3mDl/YehXuGLFk0WNmUf0/Zy4SBmdNKEABhaJqKh4nUDI1nFBg+fL3dBkaxu815w0KySYYJ5YECNfjlYR86T4BOoeXlyXInRcwQlOH1nZi3SFidv0yhQjhoJ/nlbho/n5dMR+Frv2l2Esnwk/5b07n9gUr0gV2nPvpPy/1qLgaiYYcla+r++VPfruLpBTYHG5U1AZRr22ZWx1moPWZ/xHG+86Uqjq06jzxIUOSv7uok/MV8h5A/ES8rxGhHbvwVMDlmc7vdRfJ9qmPbttRdCF2Wz9g4JyEMKdwrco8UMZP85DhjaMuac=
notifications:
- provider: GitHubPullRequest
template: |-
{{#passed}}:white_check_mark:{{/passed}}{{#failed}}:x:{{/failed}} [Build {{&projectName}} {{buildVersion}} {{status}}]({{buildUrl}}) (commit {{commitUrl}} by @{{&commitAuthorUsername}})
{{#passed}}{{#jobs}}
<details>
<summary>{{name}}</summary>
{{#artifacts}}
- [{{fileName}}]({{permalink}})
{{/artifacts}}
</details>
{{/jobs}}{{/passed}}