-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
149 lines (127 loc) · 3.48 KB
/
.drone.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
---
kind: pipeline
type: exec
name: macOS Debug
platform:
os: darwin
arch: amd64
steps:
- name: submodules
commands:
# get & update submodules
- git submodule update --init --recursive
- git submodule update --recursive --remote
- name: build
commands:
# Get all homebrew installed commands (cmake)
- export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:$PATH"
- cd source
# Configure & build
- cmake -B build . -DCMAKE_BUILD_TYPE=Debug
- cmake --build build --config Debug -j 10
- name: test
commands:
- cp source/_test/midi_freqs.txt source/build/_test/
- cd source/build/_test
- ./_test
---
kind: pipeline
type: exec
name: macOS Release
platform:
os: darwin
arch: amd64
steps:
- name: submodules
commands:
# get & update submodules
- git submodule update --init --recursive
- git submodule update --recursive --remote
- name: build
commands:
# Get all homebrew installed commands (cmake)
- export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:$PATH"
- cd source
# Configure & build
- cmake -B build . -DCMAKE_BUILD_TYPE=Release
- cmake --build build --config Release -j 10
- name: sign
environment:
MyPassword:
from_secret: MyPassword
CerticateCommonName:
from_secret: CerticateCommonName
commands:
- cd source/scripts
- ./sign-all_mac-externals.zsh
- name: dmg - notarize & staple
environment:
MyAppleTeam:
from_secret: MyAppleTeam
MyAppleID:
from_secret: MyAppleID
AppSpecificPassword:
from_secret: AppSpecificPassword
commands:
- cd source/scripts
- ./dmg-notarize+staple_mac-externals.zsh
- name: copy dmg
commands:
- commit=`git log -1 --pretty=format:%h`
- rm -f /Users/$(whoami)/Documents/Max\ 8/bnl.externals/mac_externals.drone_release-*.dmg
- cp mac_externals.notarized.dmg /Users/$(whoami)/Documents/Max\ 8/bnl.externals/mac_externals.drone_release-$commit.dmg
---
kind: pipeline
type: exec
name: Windows Debug
platform:
os: windows
arch: amd64
steps:
- name: submodules
commands:
# get & update submodules
- git submodule update --init --recursive
- git submodule update --recursive --remote
- name: build
commands:
# Add cmake path
- $env:Path += ';C:/Program Files/CMake/bin;'
- cd source
# Configure & build
- cmake -B build .
- cmake --build build --config Debug -j 10
- name: test
commands:
- Copy-Item -Path ./source/_test/midi_freqs.txt -Destination ./source/build/_test/Debug/
- cd source/build/_test/Debug
- ./_test
---
kind: pipeline
type: exec
name: Windows Release
platform:
os: windows
arch: amd64
steps:
- name: submodules
commands:
# get & update submodules
- git submodule update --init --recursive
- git submodule update --recursive --remote
- name: build
commands:
# Add cmake path
- $env:Path += ';C:/Program Files/CMake/bin;'
- cd source
# Configure & build
- cmake -B build .
- cmake --build build --config Release -j 10
- name: package & copy
commands:
- $commit=(git log -1 --pretty=format:%h)
- New-Item -ItemType "directory" -Path . -Name "support"
- Copy-Item -Path ./source/build/bc.upnpc/miniupnp/miniupnpc/Release/miniupnpc.dll -Destination ./support/
- Compress-Archive -LiteralPath ./externals,./help,./support -DestinationPath ./win_externals.drone_release-$commit.zip
- Remove-Item 'C:/Users/BLevy/Documents/Max 8/Packages/bnl.externals/win_externals.drone_release-*.zip'
- Copy-Item ./win_externals.drone_release-$commit.zip -Destination 'C:/Users/BLevy/Documents/Max 8/Packages/bnl.externals'