mirror of
https://github.com/NixOS/nix
synced 2025-07-01 12:37:59 +02:00
Trigger flake_regressions from a label
Co-authored-by: Graham Christensen <graham@grahamc.com>
This commit is contained in:
parent
6023688c6c
commit
508b7a705f
1 changed files with 16 additions and 2 deletions
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
@ -89,7 +89,14 @@ jobs:
|
|||
| ".#hydraJobs.tests." + .')
|
||||
|
||||
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
|
||||
runs-on: namespace-profile-x86-32cpu-64gb
|
||||
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
|
||||
|
||||
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
|
||||
runs-on: namespace-profile-x86-32cpu-64gb
|
||||
steps:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue