@@ -115,7 +115,7 @@ module.exports = async (context, req) => {
115115
116116 await checkPermissions ( )
117117
118- const { guessComponentUpdateDetails, isMSYSPackage } = require ( './component-updates' )
118+ const { guessComponentUpdateDetails, isMSYSPackage, needsSeparateARM64Build } = require ( './component-updates' )
119119 const { package_name } = deployMatch [ 2 ]
120120 ? { package_name : deployMatch [ 2 ] }
121121 : guessComponentUpdateDetails ( req . body . issue . title , req . body . issue . body )
@@ -162,6 +162,30 @@ module.exports = async (context, req) => {
162162 text
163163 )
164164 if ( ! isMSYSPackage ( package_name ) ) {
165+ let aarch64Answer
166+ if ( needsSeparateARM64Build ( package_name ) ) {
167+ const aarch64Id = await queueCheckRun (
168+ context ,
169+ await getToken ( ) ,
170+ 'git-for-windows' ,
171+ repo ,
172+ ref ,
173+ 'deploy_aarch64' ,
174+ `Build and deploy ${ package_name } ` ,
175+ `Deploying ${ package_name } `
176+ )
177+ aarch64Answer = await triggerBuild ( 'aarch64' )
178+ await updateCheckRun (
179+ context ,
180+ await getToken ( ) ,
181+ 'git-for-windows' ,
182+ repo ,
183+ aarch64Id , {
184+ details_url : aarch64Answer . html_url
185+ }
186+ )
187+ }
188+
165189 const id = await queueCheckRun (
166190 context ,
167191 await getToken ( ) ,
@@ -174,7 +198,10 @@ module.exports = async (context, req) => {
174198 )
175199
176200 const answer = await triggerBuild ( )
177- const answer2 = await appendToComment ( `The workflow run [was started](${ answer . html_url } )` )
201+ const answer2 = await appendToComment ( aarch64Answer
202+ ? `The [i686/x86_64](${ answer . html_url } ) and the [amd64](${ aarch64Answer . html_url } ) workflow runs were started.`
203+ : `The workflow run [was started](${ answer . html_url } ).`
204+ )
178205 await updateCheckRun (
179206 context ,
180207 await getToken ( ) ,
0 commit comments