-
Notifications
You must be signed in to change notification settings - Fork 22
/
appveyor.yml
162 lines (154 loc) · 11.1 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# Build settings for Appveyor CI
image: Ubuntu
configuration: Release
branches:
except:
- latest
cache:
- download
environment:
matrix:
- build_type: source
- build_type: mingw32
- build_type: mingw64
- build_type: macos
- build_type: librazik
GIT_PUBKEY:
secure: v1Kq8OUJsWKW5gn4AXi0FCKOuYG1XK9nlkpux50M2JIrv2v5t/V8EhQOr6SxDsdKZuhcbT+9ZG85TvIEyYmlR9JLs+O06o4oHLzMKmY9+G/HkNpVAnXTwcksz+2vi+BXisvY6Hll7cVuJMOaieP1b7dZ+fF6zjFzhEZ+WhPV3bkzUrOXdfgFl2wz4J6yXLxDaqLCj3A/gmC8dRV4aFDYRcWc1idbmofgNZFaO/1gLxpflA3YbXJSoXIA9+4RNRz0kzlKXg/Wufkh1BLYHBqF80iFO2iBd1o+yehdpIaJtOcEhdmKAUtmwP8+IBsFFJmJotP6lDiO8SO6U6w/yPUplySXspZiv6Spey34Pt5+KbiGI/u1WmM40twE3ohYp8WgpbznKmJwKk+YnqEZimc3IkfnYpk5Eiy/rZo57w2c0/PZXMyyzf8WVuk64X4Jda1hkHNhV9WvSQFXjRCTJIUl6zQeNDjYWCH909pyhlUsPPPguZZolh0KFweD9VZMktGWmdhEAmmOSfFsRFP5yTuhGsODwuLnHhhZ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zcg8sWlhWCx8vF8OdMcCILBvT/jWAqRQO7nqRDA2z1VWcJXUn+kMkphojfPxGGIhfJH0hGnetqr++dhpwPgpPa7xlzfl3v60JzQvOF6agCn9CA+RSMFgBMDQkZblOCABm1V69dXuGXU2NtgXYCg9XSzGaLxHoZ+KBHkDy4iS3E=
install:
- mkdir -p download
- checkfile() { test "$(sha1sum -b "$1" | cut -d ' ' -f 1)" == "$2"; }
- getfile() { if ! checkfile "$1" "$2"; then curl -o "$1" "$3"; checkfile "$1" "$2"; fi }
- makekey() { install -d ~/.ssh -m 0700; echo "$1" | base64 -d > ~/.ssh/"$2"; chmod 0600 ~/.ssh/"$2"; }
- pushtag() { git tag -f -a "$1" -m "$2"; git push -f origin "$1" || true; }
- is_master() { test "$APPVEYOR_REPO_BRANCH" = "master" -a -z "$APPVEYOR_PULL_REQUEST_NUMBER"; }
- git submodule update --init --recursive
#- patch -d thirdparty/JUCE -p1 -i "`pwd`"/resources/patch/juce-pthread-priority.patch
- patch -d thirdparty/JUCE -p1 -i "`pwd`"/resources/patch/juce-enable-mingw-vst3.patch
- patch -d thirdparty/JUCE -p1 -i "`pwd`"/resources/patch/juce-enable-mingw-directwrite.patch
#- patch -d thirdparty/JUCE -p1 -i "`pwd`"/resources/patch/juce-x11-badwindow.patch
- patch -d thirdparty/JUCE -p1 -i "`pwd`"/resources/patch/juce-win32-lmms-workaround.patch
#- patch -d thirdparty/JUCE -p1 -i "`pwd`"/resources/patch/juce-gcc9.patch
- patch -d thirdparty/JUCE -p1 -i "`pwd`"/resources/patch/juce-mingw-missing-api.patch
- patch -d thirdparty/JUCE -p1 -i "`pwd`"/resources/patch/juce-mingw-vst-main.patch
- getfile download/asiosdk2.3.zip 4ed6c150dcc1ee55d4ae32dfabad306547e9f15d http://jpcima.sdf1.org/files/asiosdk2.3.zip
- getfile download/vst_sdk2_4_rev2.zip d7f3668c90a69dbe640f2eeed6fc0a7e0717adff http://jpcima.sdf1.org/files/vst_sdk2_4_rev2.zip
- unzip -q -d thirdparty download/asiosdk2.3.zip
- unzip -q -d thirdparty download/vst_sdk2_4_rev2.zip
- makekey "$GIT_PUBKEY" git.pub
- makekey "$GIT_PRIVKEY" git
- export GIT_SSH_COMMAND="ssh -i $HOME/.ssh/git -o StrictHostKeyChecking=no"
- git config --global user.name 'Build robot'
- git config --global user.email '[email protected]'
- git remote set-url origin "[email protected]:$APPVEYOR_REPO_NAME.git"
- if is_master; then pushtag latest "Latest [ci skip]"; fi
- sudo apt-get install p7zip
for:
-
matrix:
only:
- build_type: source
build_script:
- git clone --recursive . ADLplug-dev
- rm -rf ADLplug-dev/thirdparty/ASIOSDK2.3
- rm -rf ADLplug-dev/thirdparty/vstsdk2.4
- rm -rf ADLplug-dev/thirdparty/JUCE/{doxygen,examples,extras}
- rm -rf ADLplug-dev/thirdparty/fmt/doc
- rm -rf ADLplug-dev/thirdparty/{libADLMIDI,libOPNMIDI}/fm_banks
- rm -rf ADLplug-dev/thirdparty/libADLMIDI/projects
- find ADLplug-dev -name '.git*' -exec rm -rf {} +
- tar -c -J -v -f ADLplug-dev.tar.xz ADLplug-dev
artifacts:
- path: ADLplug-dev.tar.xz
name: 'ADLplug & OPNplug source code'
-
matrix:
only:
- build_type: mingw32
build_script:
- docker pull jpcima/mingw
- container=$(docker run -d -i -v /home:/home jpcima/mingw /bin/bash)
- cross() { docker exec -w "$(pwd)" -i "$container" "$@"; }
- build() { mkdir -p "$1"; cd "$1"; shift; cross mingw32-cmake -G "Unix Makefiles" "$@" ..; cross make -j2; cd ..; }
- package() { 7zr a "$1".7z "$1"/{lv2,vst2,standalone}; }
- build ADLplug-dev-win32 -DCMAKE_BUILD_TYPE=Release -DADLplug_CHIP=OPL3 -DADLplug_PCH=ON -DADLplug_LV2=ON
- build OPNplug-dev-win32 -DCMAKE_BUILD_TYPE=Release -DADLplug_CHIP=OPN2 -DADLplug_PCH=ON -DADLplug_LV2=ON
- package ADLplug-dev-win32
- package OPNplug-dev-win32
artifacts:
- path: ADLplug-dev-win32.7z
name: 'ADLplug for 32-bit Windows'
- path: OPNplug-dev-win32.7z
name: 'OPNplug for 32-bit Windows'
-
matrix:
only:
- build_type: mingw64
build_script:
- docker pull jpcima/mingw
- container=$(docker run -d -i -v /home:/home jpcima/mingw /bin/bash)
- cross() { docker exec -w "$(pwd)" -i "$container" "$@"; }
- build() { mkdir -p "$1"; cd "$1"; shift; cross mingw64-cmake -G "Unix Makefiles" "$@" ..; cross make -j2; cd ..; }
- package() { 7zr a "$1".7z "$1"/{lv2,vst2,standalone}; }
- build ADLplug-dev-win64 -DCMAKE_BUILD_TYPE=Release -DADLplug_CHIP=OPL3 -DADLplug_PCH=ON -DADLplug_LV2=ON
- build OPNplug-dev-win64 -DCMAKE_BUILD_TYPE=Release -DADLplug_CHIP=OPN2 -DADLplug_PCH=ON -DADLplug_LV2=ON
- package ADLplug-dev-win64
- package OPNplug-dev-win64
artifacts:
- path: ADLplug-dev-win64.7z
name: 'ADLplug for 64-bit Windows'
- path: OPNplug-dev-win64.7z
name: 'OPNplug for 64-bit Windows'
-
matrix:
only:
- build_type: macos
build_script:
- docker pull jpcima/osxcross
- container=$(docker run -d -i -v /home:/home jpcima/osxcross /bin/bash)
- cross() { docker exec -w "$(pwd)" -e PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/osxcross/target/bin" -i "$container" "$@"; }
- build() { mkdir -p "$1"; cd "$1"; shift; cross x86_64-apple-darwin15-cmake -G "Unix Makefiles" -DCMAKE_OSX_ARCHITECTURES="x86_64;i386" "$@" ..; cross make -j2; cd ..; }
- package() { 7zr a "$1".7z "$1"/{lv2,vst2,au,standalone}; }
- build ADLplug-dev-mac -DCMAKE_BUILD_TYPE=Release -DADLplug_CHIP=OPL3 -DADLplug_LV2=ON -DADLplug_AU=ON
- build OPNplug-dev-mac -DCMAKE_BUILD_TYPE=Release -DADLplug_CHIP=OPN2 -DADLplug_LV2=ON -DADLplug_AU=ON
- package ADLplug-dev-mac
- package OPNplug-dev-mac
artifacts:
- path: ADLplug-dev-mac.7z
name: 'ADLplug for macOS'
- path: OPNplug-dev-mac.7z
name: 'OPNplug for macOS'
-
matrix:
only:
- build_type: librazik
build_script:
- rm -rf thirdparty/vstsdk2.4
- docker pull jpcima/librazik
- container=$(docker run -d -i -v /home:/home jpcima/librazik /bin/bash)
- cross() { docker exec -w "$(pwd)" -i "$container" "$@"; }
- build() { mkdir -p "$1"; cd "$1"; shift; cross cmake -G "Unix Makefiles" "$@" ..; cross make -j2; cd ..; }
- build ADLplug-dev-lzk -DCMAKE_BUILD_TYPE=Release -DADLplug_CHIP=OPL3 -DADLplug_PCH=ON -DADLplug_LV2=ON
- build OPNplug-dev-lzk -DCMAKE_BUILD_TYPE=Release -DADLplug_CHIP=OPN2 -DADLplug_PCH=ON -DADLplug_LV2=ON
- package() { cd "$1"; cross cpack -G DEB; mv ./*.deb ..; cd ..; }
- package ADLplug-dev-lzk
- package OPNplug-dev-lzk
artifacts:
- path: adlplug_amd64.deb
name: 'ADLplug for 64-bit LibraZiK-2 / Debian Stretch'
- path: opnplug_amd64.deb
name: 'OPNplug for 64-bit LibraZiK-2 / Debian Stretch'
deploy:
- release: latest
description: The latest development release. Revision $(APPVEYOR_REPO_COMMIT)
provider: GitHub
auth_token:
secure: tvDB6NGgbFIuYY2MbMnWtb7+uQNnlYmnqjNLZUxKhknQq/xjyNbSWayJkzjQJcga
artifact: 'ADLplug for 32-bit Windows,OPNplug for 32-bit Windows,ADLplug for 64-bit Windows,OPNplug for 64-bit Windows,ADLplug for macOS,OPNplug for macOS,ADLplug for 64-bit LibraZiK-2 / Debian Stretch,OPNplug for 64-bit LibraZiK-2 / Debian Stretch,ADLplug & OPNplug source code'
draft: false
prerelease: true
force_update: true
on:
branch: master