Skip to content

Commit fd2430a

Browse files
committed
fix: emit Build kernels (x86_64|arm64) checks for branch protection
The 'Main' ruleset on this repo requires status checks named exactly 'Build kernels (x86_64)' and 'Build kernels (arm64)' (left over from the previous workflow). The new per-(version, arch) jobs use different names, so those required checks never reported and PRs couldn't merge. Add a tiny aggregator job whose name interpolates to those exact two strings and that gates on the build matrix's combined result, so parallelism stays per-(version, arch) but branch protection is satisfied.
1 parent ef204f4 commit fd2430a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,26 @@ jobs:
6262
path: ./builds
6363
retention-days: 7
6464

65+
# Aggregator with the exact name required by the `Main` ruleset on this
66+
# repo. Per-(version, arch) jobs above run in parallel; this single check
67+
# gates the whole arch on their combined success.
68+
build-status:
69+
needs: build
70+
if: always()
71+
name: Build kernels (${{ matrix.target_arch }})
72+
strategy:
73+
matrix:
74+
target_arch: [x86_64, arm64]
75+
runs-on: ubuntu-24.04
76+
permissions:
77+
contents: read
78+
steps:
79+
- run: |
80+
if [[ "${{ needs.build.result }}" != "success" ]]; then
81+
echo "build matrix did not succeed (result=${{ needs.build.result }})"
82+
exit 1
83+
fi
84+
6585
publish:
6686
needs: build
6787
if: github.event_name == 'workflow_dispatch'

0 commit comments

Comments
 (0)