1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-01 16:41:47 +02:00

Trigger flake_regressions from a label

Co-authored-by: Graham Christensen <graham@grahamc.com>
This commit is contained in:
Eelco Dolstra 2025-05-08 18:12:58 +02:00 committed by GitHub
parent 6023688c6c
commit 508b7a705f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -89,7 +89,14 @@ jobs:
| ".#hydraJobs.tests." + .') | ".#hydraJobs.tests." + .')
flake_regressions: flake_regressions:
#if: github.event_name == 'merge_group' if: |
github.event_name == 'merge_group'
|| (
github.event.pull_request.head.repo.full_name == 'DeterminateSystems/nix-src'
&& (
(github.event.action == 'labeled' && github.event.label.name == 'flake-regression-test')
|| (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'flake-regression-test'))
)
needs: build_x86_64-linux needs: build_x86_64-linux
runs-on: namespace-profile-x86-32cpu-64gb runs-on: namespace-profile-x86-32cpu-64gb
steps: steps:
@ -112,7 +119,14 @@ jobs:
- run: nix build -L --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH PARALLEL="-P 50%" flake-regressions/eval-all.sh - run: nix build -L --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH PARALLEL="-P 50%" flake-regressions/eval-all.sh
flake_regressions_lazy: flake_regressions_lazy:
#if: github.event_name == 'merge_group' if: |
github.event_name == 'merge_group'
|| (
github.event.pull_request.head.repo.full_name == 'DeterminateSystems/nix-src'
&& (
(github.event.action == 'labeled' && github.event.label.name == 'flake-regression-test')
|| (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'flake-regression-test'))
)
needs: build_x86_64-linux needs: build_x86_64-linux
runs-on: namespace-profile-x86-32cpu-64gb runs-on: namespace-profile-x86-32cpu-64gb
steps: steps: