@@ -3,34 +3,27 @@ pinned_go: &pinned_go go-boring=1.22.2-1
3
3
build_dir : &build_dir /cfsetup_build
4
4
default-flavor : bullseye
5
5
buster : &buster
6
- build :
6
+ build-linux :
7
7
build_dir : *build_dir
8
8
builddeps : &build_deps
9
9
- *pinned_go
10
10
- build-essential
11
- - gotest-to-teamcity
12
11
- fakeroot
13
12
- rubygem-fpm
14
13
- rpm
15
14
- libffi-dev
16
- - reprepro
17
- - createrepo
18
15
pre-cache : &build_pre_cache
19
16
- export GOCACHE=/cfsetup_build/.cache/go-build
20
17
- go install golang.org/x/tools/cmd/goimports@latest
21
18
post-cache :
22
- # TODO: TUN-8126 this is temporary to make sure packages can be built before release
23
- - ./build-packages.sh
24
19
# Build binary for component test
25
20
- GOOS=linux GOARCH=amd64 make cloudflared
26
- build-fips :
21
+ build-linux- fips :
27
22
build_dir : *build_dir
28
23
builddeps : *build_deps
29
24
pre-cache : *build_pre_cache
30
25
post-cache :
31
26
- export FIPS=true
32
- # TODO: TUN-8126 this is temporary to make sure packages can be built before release
33
- - ./build-packages-fips.sh
34
27
# Build binary for component test
35
28
- GOOS=linux GOARCH=amd64 make cloudflared
36
29
cover :
@@ -39,61 +32,36 @@ buster: &buster
39
32
pre-cache : *build_pre_cache
40
33
post-cache :
41
34
- make cover
42
- # except FIPS (handled in github-fips-release-pkgs) and macos (handled in github-release-macos-amd64)
43
- github-release-pkgs :
35
+ # except FIPS and macos
36
+ build-linux-release :
44
37
build_dir : *build_dir
45
- builddeps :
38
+ builddeps : &build_deps_release
46
39
- *pinned_go
47
40
- build-essential
48
41
- fakeroot
49
42
- rubygem-fpm
50
43
- rpm
51
- - wget
52
- # libmsi and libgcab are libraries the wixl binary depends on.
53
- - libmsi-dev
54
- - libgcab-dev
55
- - python3-dev
56
44
- libffi-dev
57
- - python3-setuptools
45
+ - python3-dev
58
46
- python3-pip
59
- - reprepro
60
- - createrepo
61
- pre-cache : &github_release_pkgs_pre_cache
62
- - wget https://github.com/sudarshan-reddy/msitools/releases/download/v0.101b/wixl -P /usr/local/bin
63
- - chmod a+x /usr/local/bin/wixl
47
+ - python3-setuptools
48
+ - wget
49
+ pre-cache : &build_release_pre_cache
64
50
- pip3 install pynacl==1.4.0
65
51
- pip3 install pygithub==1.55
66
52
- pip3 install boto3==1.22.9
67
53
- pip3 install python-gnupg==0.4.9
68
54
post-cache :
69
55
# build all packages (except macos and FIPS) and move them to /cfsetup/built_artifacts
70
56
- ./build-packages.sh
71
- # release the packages built and moved to /cfsetup/built_artifacts
72
- - make github-release-built-pkgs
73
- # publish packages to linux repos
74
- - make release-pkgs-linux
75
57
# handle FIPS separately so that we built with gofips compiler
76
- github- fips-release-pkgs :
58
+ build-linux- fips-release :
77
59
build_dir : *build_dir
78
- builddeps :
79
- - *pinned_go
80
- - build-essential
81
- - fakeroot
82
- - rubygem-fpm
83
- - rpm
84
- - wget
85
- # libmsi and libgcab are libraries the wixl binary depends on.
86
- - libmsi-dev
87
- - libgcab-dev
88
- - python3-dev
89
- - libffi-dev
90
- - python3-setuptools
91
- - python3-pip
92
- pre-cache : *github_release_pkgs_pre_cache
60
+ builddeps : *build_deps_release
61
+ pre-cache : *build_release_pre_cache
93
62
post-cache :
94
63
# same logic as above, but for FIPS packages only
95
64
- ./build-packages-fips.sh
96
- - make github-release-built-pkgs
97
65
generate-versions-file :
98
66
build_dir : *build_dir
99
67
builddeps :
@@ -152,21 +120,7 @@ buster: &buster
152
120
- export GOOS=linux
153
121
- export GOARCH=arm64
154
122
- make cloudflared-deb
155
- github-release-macos-amd64 :
156
- build_dir : *build_dir
157
- builddeps : &build_pygithub
158
- - *pinned_go
159
- - build-essential
160
- - python3-dev
161
- - libffi-dev
162
- - python3-setuptools
163
- - python3-pip
164
- pre-cache : &install_pygithub
165
- - pip3 install pynacl==1.4.0
166
- - pip3 install pygithub==1.55
167
- post-cache :
168
- - make github-mac-upload
169
- github-release-windows :
123
+ package-windows :
170
124
build_dir : *build_dir
171
125
builddeps :
172
126
- *pinned_go
@@ -186,10 +140,16 @@ buster: &buster
186
140
- pip3 install pygithub==1.55
187
141
post-cache :
188
142
- .teamcity/package-windows.sh
189
- - make github-windows-upload
190
143
test :
191
144
build_dir : *build_dir
192
- builddeps : *build_deps
145
+ builddeps : &build_deps_tests
146
+ - *pinned_go
147
+ - build-essential
148
+ - fakeroot
149
+ - rubygem-fpm
150
+ - rpm
151
+ - libffi-dev
152
+ - gotest-to-teamcity
193
153
pre-cache : *build_pre_cache
194
154
post-cache :
195
155
- export GOOS=linux
@@ -199,7 +159,7 @@ buster: &buster
199
159
- make test | gotest-to-teamcity
200
160
test-fips :
201
161
build_dir : *build_dir
202
- builddeps : *build_deps
162
+ builddeps : *build_deps_tests
203
163
pre-cache : *build_pre_cache
204
164
post-cache :
205
165
- export GOOS=linux
@@ -210,7 +170,7 @@ buster: &buster
210
170
- make test | gotest-to-teamcity
211
171
component-test :
212
172
build_dir : *build_dir
213
- builddeps :
173
+ builddeps : &build_deps_component_test
214
174
- *pinned_go
215
175
- python3.7
216
176
- python3-pip
@@ -230,24 +190,48 @@ buster: &buster
230
190
- python3 component-tests/setup.py --type cleanup
231
191
component-test-fips :
232
192
build_dir : *build_dir
233
- builddeps :
234
- - *pinned_go
235
- - python3.7
236
- - python3-pip
237
- - python3-setuptools
238
- # procps installs the ps command which is needed in test_sysv_service because the init script
239
- # uses ps pid to determine if the agent is running
240
- - procps
193
+ builddeps : *build_deps_component_test
241
194
pre-cache-copy-paths :
242
195
- component-tests/requirements.txt
243
196
pre-cache : *component_test_pre_cache
244
197
post-cache : *component_test_post_cache
245
- github-message- release :
198
+ github-release :
246
199
build_dir : *build_dir
247
- builddeps : *build_pygithub
248
- pre-cache : *install_pygithub
200
+ builddeps :
201
+ - *pinned_go
202
+ - build-essential
203
+ - python3-dev
204
+ - libffi-dev
205
+ - python3-setuptools
206
+ - python3-pip
207
+ pre-cache :
208
+ - pip3 install pynacl==1.4.0
209
+ - pip3 install pygithub==1.55
249
210
post-cache :
211
+ - make github-release
250
212
- make github-message
213
+ r2-linux-release :
214
+ build_dir : *build_dir
215
+ builddeps :
216
+ - *pinned_go
217
+ - build-essential
218
+ - fakeroot
219
+ - rubygem-fpm
220
+ - rpm
221
+ - wget
222
+ - python3-dev
223
+ - libffi-dev
224
+ - python3-setuptools
225
+ - python3-pip
226
+ - reprepro
227
+ - createrepo
228
+ pre-cache :
229
+ - pip3 install pynacl==1.4.0
230
+ - pip3 install pygithub==1.55
231
+ - pip3 install boto3==1.22.9
232
+ - pip3 install python-gnupg==0.4.9
233
+ post-cache :
234
+ - make r2-linux-release
251
235
252
236
bullseye : *buster
253
237
bookworm : *buster
0 commit comments