ci: Fix bwrap jobs on run_bundling (#59765)

This fixes an issue where the bwrap bundle jobs were not guarded
properly and thus showed up as `cancelled` in the job list for PRs from
external contributors, causing the CI to show as failed on a PR (e.g.
https://github.com/zed-industries/zed/actions/runs/28028544741/job/82963972185?pr=59758)

Release Notes:

- N/A
This commit is contained in:
Finn Evers 2026-06-23 16:44:02 +02:00 committed by GitHub
parent 41f9a2e434
commit 1e7f1a11f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -99,6 +99,9 @@ jobs:
if-no-files-found: error
timeout-minutes: 60
build_static_bwrap_linux_aarch64:
if: |-
(github.event.action == 'labeled' && github.event.label.name == 'run-bundling') ||
(github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'run-bundling'))
runs-on: namespace-profile-8x32-ubuntu-2004-arm-m4
steps:
- name: steps::cache_nix_dependencies_namespace
@ -130,6 +133,9 @@ jobs:
if-no-files-found: error
timeout-minutes: 60
build_static_bwrap_linux_x86_64:
if: |-
(github.event.action == 'labeled' && github.event.label.name == 'run-bundling') ||
(github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'run-bundling'))
runs-on: namespace-profile-32x64-ubuntu-2004
steps:
- name: steps::cache_nix_dependencies_namespace

View file

@ -114,7 +114,7 @@ pub(crate) fn build_static_bwrap(arch: Arch, deps: &[&NamedJob]) -> NamedJob {
NamedJob {
name: format!("build_static_bwrap_linux_{arch}"),
job: dependant_job(deps)
job: bundle_job(deps)
.runs_on(arch.linux_bundler())
.timeout_minutes(60u32)
.add_step(steps::cache_nix_dependencies_namespace())