@@ -3,34 +3,27 @@ pinned_go: &pinned_go go-boring=1.22.2-1
33build_dir : &build_dir /cfsetup_build
44default-flavor : bullseye
55buster : &buster
6- build :
6+ build-linux :
77 build_dir : *build_dir
88 builddeps : &build_deps
99 - *pinned_go
1010 - build-essential
11- - gotest-to-teamcity
1211 - fakeroot
1312 - rubygem-fpm
1413 - rpm
1514 - libffi-dev
16- - reprepro
17- - createrepo
1815 pre-cache : &build_pre_cache
1916 - export GOCACHE=/cfsetup_build/.cache/go-build
2017 - go install golang.org/x/tools/cmd/goimports@latest
2118 post-cache :
22- # TODO: TUN-8126 this is temporary to make sure packages can be built before release
23- - ./build-packages.sh
2419 # Build binary for component test
2520 - GOOS=linux GOARCH=amd64 make cloudflared
26- build-fips :
21+ build-linux- fips :
2722 build_dir : *build_dir
2823 builddeps : *build_deps
2924 pre-cache : *build_pre_cache
3025 post-cache :
3126 - export FIPS=true
32- # TODO: TUN-8126 this is temporary to make sure packages can be built before release
33- - ./build-packages-fips.sh
3427 # Build binary for component test
3528 - GOOS=linux GOARCH=amd64 make cloudflared
3629 cover :
@@ -39,61 +32,36 @@ buster: &buster
3932 pre-cache : *build_pre_cache
4033 post-cache :
4134 - 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 :
4437 build_dir : *build_dir
45- builddeps :
38+ builddeps : &build_deps_release
4639 - *pinned_go
4740 - build-essential
4841 - fakeroot
4942 - rubygem-fpm
5043 - rpm
51- - wget
52- # libmsi and libgcab are libraries the wixl binary depends on.
53- - libmsi-dev
54- - libgcab-dev
55- - python3-dev
5644 - libffi-dev
57- - python3-setuptools
45+ - python3-dev
5846 - 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
6450 - pip3 install pynacl==1.4.0
6551 - pip3 install pygithub==1.55
6652 - pip3 install boto3==1.22.9
6753 - pip3 install python-gnupg==0.4.9
6854 post-cache :
6955 # build all packages (except macos and FIPS) and move them to /cfsetup/built_artifacts
7056 - ./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
7557 # handle FIPS separately so that we built with gofips compiler
76- github- fips-release-pkgs :
58+ build-linux- fips-release :
7759 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
9362 post-cache :
9463 # same logic as above, but for FIPS packages only
9564 - ./build-packages-fips.sh
96- - make github-release-built-pkgs
9765 generate-versions-file :
9866 build_dir : *build_dir
9967 builddeps :
@@ -152,21 +120,7 @@ buster: &buster
152120 - export GOOS=linux
153121 - export GOARCH=arm64
154122 - 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 :
170124 build_dir : *build_dir
171125 builddeps :
172126 - *pinned_go
@@ -186,10 +140,16 @@ buster: &buster
186140 - pip3 install pygithub==1.55
187141 post-cache :
188142 - .teamcity/package-windows.sh
189- - make github-windows-upload
190143 test :
191144 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
193153 pre-cache : *build_pre_cache
194154 post-cache :
195155 - export GOOS=linux
@@ -199,7 +159,7 @@ buster: &buster
199159 - make test | gotest-to-teamcity
200160 test-fips :
201161 build_dir : *build_dir
202- builddeps : *build_deps
162+ builddeps : *build_deps_tests
203163 pre-cache : *build_pre_cache
204164 post-cache :
205165 - export GOOS=linux
@@ -210,7 +170,7 @@ buster: &buster
210170 - make test | gotest-to-teamcity
211171 component-test :
212172 build_dir : *build_dir
213- builddeps :
173+ builddeps : &build_deps_component_test
214174 - *pinned_go
215175 - python3.7
216176 - python3-pip
@@ -230,24 +190,48 @@ buster: &buster
230190 - python3 component-tests/setup.py --type cleanup
231191 component-test-fips :
232192 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
241194 pre-cache-copy-paths :
242195 - component-tests/requirements.txt
243196 pre-cache : *component_test_pre_cache
244197 post-cache : *component_test_post_cache
245- github-message- release :
198+ github-release :
246199 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
249210 post-cache :
211+ - make github-release
250212 - 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
251235
252236bullseye : *buster
253237bookworm : *buster
0 commit comments