From d992062cf9d6f2e6402a5847514fde5d35ec27f4 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Mon, 22 Jun 2026 18:28:01 -0700 Subject: [PATCH] fix: publish linux release matrix artifacts (#6111) --- .github/workflows/release-cut.yml | 2 +- .../package-electron-runtime-contract.test.mjs | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-cut.yml b/.github/workflows/release-cut.yml index 3f505ca75..26de7544d 100644 --- a/.github/workflows/release-cut.yml +++ b/.github/workflows/release-cut.yml @@ -894,7 +894,7 @@ jobs: APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} - name: Publish release artifacts (Linux) - if: matrix.platform == 'linux' + if: matrix.platform == 'linux-x64' || matrix.platform == 'linux-arm64' uses: nick-fields/retry@v4 with: timeout_minutes: 30 diff --git a/config/scripts/package-electron-runtime-contract.test.mjs b/config/scripts/package-electron-runtime-contract.test.mjs index f24685635..dea2b89ad 100644 --- a/config/scripts/package-electron-runtime-contract.test.mjs +++ b/config/scripts/package-electron-runtime-contract.test.mjs @@ -86,6 +86,21 @@ describe('Electron runtime package contract', () => { ) }) + it('publishes both Linux release matrix entries', () => { + const releaseWorkflow = readFileSync( + join(projectDir, '.github/workflows/release-cut.yml'), + 'utf8' + ) + const parsedWorkflow = parse(releaseWorkflow) + const publishLinuxStep = parsedWorkflow.jobs.build.steps.find( + (step) => step.name === 'Publish release artifacts (Linux)' + ) + + expect(publishLinuxStep.if).toContain("matrix.platform == 'linux-x64'") + expect(publishLinuxStep.if).toContain("matrix.platform == 'linux-arm64'") + expect(publishLinuxStep.with.command).toBe('${{ matrix.release_command }}') + }) + it('lets release-cut tag a version that is already present on main', () => { const releaseWorkflow = readFileSync( join(projectDir, '.github/workflows/release-cut.yml'),