@@ -44,6 +44,8 @@ let Artifacts = ../Constants/Artifacts.dhall
4444
4545let Toolchain = ../ Constants / Toolchain. dhall
4646
47+ let Arch = ../ Constants / Arch. dhall
48+
4749let MinaBuildSpec =
4850 { Type =
4951 { prefix : Text
@@ -59,6 +61,7 @@ let MinaBuildSpec =
5961 , channel : DebianChannel. Type
6062 , debianRepo : DebianRepo. Type
6163 , buildScript : Text
64+ , arch : Arch. Type
6265 , deb_legacy_version : Text
6366 , suffix : Optional Text
6467 , if : Optional B / If
@@ -71,14 +74,15 @@ let MinaBuildSpec =
7174 , profile = Profiles.Type. Devnet
7275 , buildFlags = BuildFlags.Type. None
7376 , network = Network.Type. Berkeley
74- , toolchainSelectMode = Toolchain.SelectionMode. ByDebian
77+ , toolchainSelectMode = Toolchain.SelectionMode. ByDebianAndArch
7578 , tags = [ PipelineTag.Type. Long , PipelineTag.Type. Release ]
7679 , scope = PipelineScope. Full
7780 , channel = DebianChannel.Type. Unstable
7881 , debianRepo = DebianRepo.Type. Unstable
7982 , extraBuildEnvs = [] : List Text
8083 , suffix = None Text
8184 , deb_legacy_version = " 3.1.1-alpha1-compatible-14a8b92"
85+ , arch = Arch.Type. Amd64
8286 , if = None B / If
8387 }
8488 }
@@ -90,7 +94,8 @@ let labelSuffix
9094 spec.debVersion} ${Network.capitalName
9195 spec.network} ${Profiles.toSuffixUppercase
9296 spec.profile} ${BuildFlags.toSuffixUppercase
93- spec.buildFlags}"
97+ spec.buildFlags}${Arch.labelSuffix
98+ spec.arch}"
9499
95100let nameSuffix
96101 : MinaBuildSpec. Type -> Text
@@ -99,7 +104,8 @@ let nameSuffix
99104 spec.debVersion}${Network.capitalName
100105 spec.network}${Profiles.toSuffixUppercase
101106 spec.profile}${BuildFlags.toSuffixUppercase
102- spec.buildFlags}"
107+ spec.buildFlags}${Arch.nameSuffix
108+ spec.arch}"
103109
104110let build_artifacts
105111 : MinaBuildSpec. Type -> Command. Type
@@ -110,13 +116,15 @@ let build_artifacts
110116 Toolchain. select
111117 spec. toolchainSelectMode
112118 spec. debVersion
119+ spec. arch
113120 ( [ " DUNE_PROFILE=${Profiles.duneProfile spec.profile}"
114121 , " AWS_ACCESS_KEY_ID"
115122 , " AWS_SECRET_ACCESS_KEY"
116123 , " MINA_BRANCH=\$BUILDKITE_BRANCH"
117124 , " MINA_COMMIT_SHA1=\$BUILDKITE_COMMIT"
118125 , " MINA_DEB_CODENAME=${DebianVersions.lowerName
119126 spec.debVersion}"
127+ , " ARCHITECTURE=${Arch.lowerName spec.arch}"
120128 , Network. buildMainnetEnv spec. network
121129 ]
122130 # BuildFlags. buildEnvs spec. buildFlags
@@ -156,6 +164,7 @@ let docker_step
156164 , build_flag = spec. buildFlags
157165 , step = step_dep_name
158166 , prefix = spec. prefix
167+ , arch = spec. arch
159168 }
160169
161170 let docker_publish = DockerPublish.Type. Essential
@@ -173,6 +182,7 @@ let docker_step
173182 , deb_repo = DebianRepo.Type. Local
174183 , deb_legacy_version = spec. deb_legacy_version
175184 , verify = True
185+ , arch = spec. arch
176186 , if = spec. if
177187 }
178188 ]
@@ -216,6 +226,7 @@ let docker_step
216226 , docker_publish = docker_publish
217227 , deb_repo = DebianRepo.Type. Local
218228 , deb_legacy_version = spec. deb_legacy_version
229+ , arch = spec. arch
219230 }
220231 ]
221232 , TestExecutive = [] : List DockerImage.ReleaseSpec. Type
@@ -232,6 +243,7 @@ let docker_step
232243 , docker_publish = docker_publish
233244 , deb_repo = DebianRepo.Type. Local
234245 , deb_legacy_version = spec. deb_legacy_version
246+ , arch = spec. arch
235247 , if = spec. if
236248 }
237249 ]
@@ -247,6 +259,7 @@ let docker_step
247259 , deb_repo = DebianRepo.Type. Local
248260 , deb_legacy_version = spec. deb_legacy_version
249261 , verify = True
262+ , arch = spec. arch
250263 , if = spec. if
251264 }
252265 ]
@@ -261,6 +274,7 @@ let docker_step
261274 , deb_repo = DebianRepo.Type. Local
262275 , deb_legacy_version = spec. deb_legacy_version
263276 , verify = True
277+ , arch = spec. arch
264278 , if = spec. if
265279 }
266280 ]
@@ -274,6 +288,7 @@ let docker_step
274288 , deb_profile = spec. profile
275289 , deb_codename = spec. debVersion
276290 , deb_legacy_version = spec. deb_legacy_version
291+ , arch = spec. arch
277292 , if = spec. if
278293 }
279294 ]
@@ -288,6 +303,7 @@ let docker_step
288303 , deb_repo = DebianRepo.Type. Local
289304 , deb_profile = spec. profile
290305 , deb_legacy_version = spec. deb_legacy_version
306+ , arch = spec. arch
291307 , if = spec. if
292308 }
293309 ]
0 commit comments