Skip to content

Commit 5c3510a

Browse files
authored
Merge pull request #108 from git-for-windows/aarc64-artifacts
cascading-runs: also build ARM64 artifacts
2 parents c4475aa + a357bde commit 5c3510a

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

GitForWindowsHelper/cascading-runs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const triggerGitArtifactsRuns = async (context, checkRunOwner, checkRunRepo, tag
4242

4343
const architecturesToTrigger = []
4444
const { listCheckRunsForCommit, queueCheckRun } = require('./check-runs')
45-
for (const architecture of ['x86_64', 'i686']) {
45+
for (const architecture of ['x86_64', 'i686', 'aarch64']) {
4646
const workflowName = `git-artifacts-${architecture}`
4747
const runs = await listCheckRunsForCommit(
4848
context,

__tests__/index.test.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ The \`tag-git\` workflow run [was started](https://url-to-tag-git/)
165165
166166
git-artifacts-x86_64 run already exists at <url-to-existing-x86_64-run>.
167167
The \`git-artifacts-i686\` workflow run [was started](dispatched-workflow-git-artifacts.yml).
168+
The \`git-artifacts-aarch64\` workflow run [was started](dispatched-workflow-git-artifacts.yml).
168169
`)
169170
return { html_url: 'https://github.com/git-for-windows/git/pull/4322#issuecomment-1450703020' }
170171
}
@@ -751,6 +752,7 @@ test('a completed `tag-git` run triggers `git-artifacts` runs', async () => {
751752
expect(context.res).toEqual({
752753
body: `git-artifacts-x86_64 run already exists at <url-to-existing-x86_64-run>.
753754
The \`git-artifacts-i686\` workflow run [was started](dispatched-workflow-git-artifacts.yml).
755+
The \`git-artifacts-aarch64\` workflow run [was started](dispatched-workflow-git-artifacts.yml).
754756
`,
755757
headers: undefined,
756758
status: undefined
@@ -819,20 +821,26 @@ The \`tag-git\` workflow run [was started](dispatched-workflow-tag-git.yml)`,
819821
820822
The \`git-artifacts-x86_64\` workflow run [was started](dispatched-workflow-git-artifacts.yml).
821823
The \`git-artifacts-i686\` workflow run [was started](dispatched-workflow-git-artifacts.yml).
824+
The \`git-artifacts-aarch64\` workflow run [was started](dispatched-workflow-git-artifacts.yml).
822825
`,
823826
headers: undefined,
824827
status: undefined
825828
})
826829
expect(mockGetInstallationAccessToken).toHaveBeenCalled()
827830
expect(mockGitHubApiRequestAsApp).not.toHaveBeenCalled()
828-
expect(dispatchedWorkflows).toHaveLength(2)
831+
expect(dispatchedWorkflows).toHaveLength(3)
829832
expect(dispatchedWorkflows[0].html_url).toEqual('dispatched-workflow-git-artifacts.yml')
830833
expect(dispatchedWorkflows[0].payload.inputs).toEqual({
831-
architecture: 'i686',
834+
architecture: 'aarch64',
832835
tag_git_workflow_run_id: "341"
833836
})
834837
expect(dispatchedWorkflows[1].html_url).toEqual('dispatched-workflow-git-artifacts.yml')
835838
expect(dispatchedWorkflows[1].payload.inputs).toEqual({
839+
architecture: 'i686',
840+
tag_git_workflow_run_id: "341"
841+
})
842+
expect(dispatchedWorkflows[2].html_url).toEqual('dispatched-workflow-git-artifacts.yml')
843+
expect(dispatchedWorkflows[2].payload.inputs).toEqual({
836844
architecture: 'x86_64',
837845
tag_git_workflow_run_id: "341"
838846
})

0 commit comments

Comments
 (0)