-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
197 lines (177 loc) · 6.29 KB
/
.gitlab-ci.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
stages:
- build
- package
- deploy
variables:
GIT_SUBMODULE_STRATEGY: recursive
make_pd_linux_x86_64_f32:
stage: build
script:
- make CPPFLAGS="-I $CI_PROJECT_DIR/flext/source" PDDIR=$HOME/pure-data/
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME.pd_linux
expire_in: 1h
make_pd_linux_x86_64_f64:
stage: build
script:
- make CPPFLAGS="-I $CI_PROJECT_DIR/flext/source -DPD_FLOATSIZE=64" PDDIR=$HOME/pure-data/
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME.pd_linux
expire_in: 1h
make_pd_linux_rpi3_f32:
stage: build
script:
- make CPPFLAGS="-I $CI_PROJECT_DIR/flext/source" PLATFORM=arm-linux-gnueabihf PDDIR=$HOME/pure-data/ extension=l_arm
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME.l_arm
expire_in: 1h
make_pd_linux_rpi3_f64:
stage: build
script:
- make CPPFLAGS="-I $CI_PROJECT_DIR/flext/source -DPD_FLOATSIZE=64" PLATFORM=arm-linux-gnueabihf PDDIR=$HOME/pure-data/ extension=l_arm
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME.l_arm
expire_in: 1h
make_pd_linux_rpi4_64_f32:
stage: build
script:
- make CPPFLAGS="-I $CI_PROJECT_DIR/flext/source" PLATFORM=aarch64-linux-gnu PDDIR=$HOME/pure-data/ extension=l_aarch64
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME.l_aarch64
expire_in: 1h
make_pd_linux_rpi4_64_f64:
stage: build
script:
- make CPPFLAGS="-I $CI_PROJECT_DIR/flext/source -DPD_FLOATSIZE=64" PLATFORM=aarch64-linux-gnu PDDIR=$HOME/pure-data/ extension=l_aarch64
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME.l_aarch64
expire_in: 1h
make_pd_win64_f32:
stage: build
script:
- make CPPFLAGS="-I $CI_PROJECT_DIR/flext/source" PLATFORM=x86_64-w64-mingw32 PDDIR=$HOME/pd-win64
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME.dll
expire_in: 1h
make_pd_win64_f64:
stage: build
script:
- make CPPFLAGS="-I $CI_PROJECT_DIR/flext/source -DPD_FLOATSIZE=64" PLATFORM=x86_64-w64-mingw32 PDDIR=$HOME/pd-win64
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME.dll
expire_in: 1h
make_pd_osx_f32:
stage: build
script:
- make CXX=o64-clang++ CC=o64-clang PDDIR="$HOME/pure-data/" CPPFLAGS="-I $CI_PROJECT_DIR/flext/source -arch x86_64 -arch x86_64h -arch arm64" LDFLAGS="-arch x86_64 -arch x86_64h -arch arm64"
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME.pd_darwin
expire_in: 1h
make_pd_osx_f64:
stage: build
script:
- make CXX=o64-clang++ CC=o64-clang PDDIR="$HOME/pure-data/" CPPFLAGS="-I $CI_PROJECT_DIR/flext/source -DPD_FLOATSIZE=64 -arch x86_64 -arch x86_64h -arch arm64" LDFLAGS="-arch x86_64 -arch x86_64h -arch arm64"
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME.pd_darwin
expire_in: 1h
make_max_win64:
stage: build
script:
- mkdir -p build && cd build
- cmake .. -Wno-dev -DFLEXT_DIR=$CI_PROJECT_DIR/flext -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_SYSTEM_NAME="Windows" -DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations"
- make
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME.mxe*
expire_in: 1h
make_max_osx:
stage: build
script:
- mkdir -p build && cd build
- cmake .. -Wno-dev -DFLEXT_DIR=$CI_PROJECT_DIR/flext -DCMAKE_CXX_COMPILER=o64-clang++ -DCMAKE_C_COMPILER=o64-clang -DCMAKE_SYSTEM_NAME="Darwin" -DCMAKE_CXX_FLAGS="-arch x86_64 -arch x86_64h -arch arm64 -Wno-deprecated-declarations" -DCMAKE_SHARED_LINKER_FLAGS="-arch x86_64 -arch x86_64h -arch arm64"
- make
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME.mxo
expire_in: 1h
package_pd_f32_deken:
stage: package
dependencies:
- make_pd_linux_x86_64_f32
- make_pd_win64_f32
- make_pd_osx_f32
- make_pd_linux_rpi3_f32
- make_pd_linux_rpi4_64_f32
script:
- mkdir -p build/$CI_PROJECT_NAME
- cp readme.txt license.txt $CI_PROJECT_DIR/pd/*.pd build/$CI_PROJECT_NAME || true
- mv $CI_PROJECT_DIR/$CI_PROJECT_NAME.pd_* $CI_PROJECT_DIR/$CI_PROJECT_NAME.l_* $CI_PROJECT_DIR/$CI_PROJECT_NAME.dll build/$CI_PROJECT_NAME
- deken package build/$CI_PROJECT_NAME --version `cat version.txt`
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME*.dek*
expire_in: 24h
package_pd_f64_deken:
stage: package
dependencies:
- make_pd_linux_x86_64_f64
- make_pd_win64_f64
- make_pd_osx_f64
- make_pd_linux_rpi3_f64
- make_pd_linux_rpi4_64_f64
script:
- mkdir -p build/$CI_PROJECT_NAME
- cp readme.txt license.txt $CI_PROJECT_DIR/pd/*.pd build/$CI_PROJECT_NAME || true
- mv $CI_PROJECT_DIR/$CI_PROJECT_NAME.pd_* $CI_PROJECT_DIR/$CI_PROJECT_NAME.l_* $CI_PROJECT_DIR/$CI_PROJECT_NAME.dll build/$CI_PROJECT_NAME
- deken package build/$CI_PROJECT_NAME --version `cat version.txt`
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME*.dek*
expire_in: 24h
package_max:
stage: package
dependencies:
- make_max_win64
- make_max_osx
script:
- for d in externals help init; do mkdir -p build/$CI_PROJECT_NAME/$d; done
- mv $CI_PROJECT_DIR/$CI_PROJECT_NAME.mxe* $CI_PROJECT_DIR/$CI_PROJECT_NAME.mxo build/$CI_PROJECT_NAME/externals
- cp readme.txt license.txt build/$CI_PROJECT_NAME
- cp maxmsp/*-objectmappings.txt build/$CI_PROJECT_NAME/init || true
- cp maxmsp/*.{max,}help build/$CI_PROJECT_NAME/help || true
- cd build && zip -r9 "$CI_PROJECT_DIR/$CI_PROJECT_NAME-`cat $CI_PROJECT_DIR/version.txt`.zip" $CI_PROJECT_NAME
artifacts:
paths:
- $CI_PROJECT_DIR/$CI_PROJECT_NAME-*.zip
expire_in: 24h
push_github:
stage: deploy
script:
- git remote add github https://[email protected]/$GITHUB_USERNAME/$CI_PROJECT_NAME.git || true
# we need some extra treatment because the gitlab-runner doesn't check out the full history
- git push github HEAD:master --tags
upload_deken:
stage: deploy
dependencies:
- package_pd_f32_deken
- package_pd_f64_deken
script:
- deken upload --no-source-error $CI_PROJECT_DIR/$CI_PROJECT_NAME*.dek
upload_owncloud:
stage: deploy
dependencies:
- package_pd_f32_deken
- package_pd_f64_deken
- package_max
script:
- oc-upload.sh pdmax-packages $CI_PROJECT_DIR/$CI_PROJECT_NAME*.dek* $CI_PROJECT_DIR/$CI_PROJECT_NAME-*.zip