From dc619942a29379a1143bd9526e0f17f975206482 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Wed, 2 Dec 2026 17:03:51 +0100 Subject: [PATCH] ci: fix Ubuntu2004-x64-CUDA label condition in PR-5.x.yaml Combine the split ${{ ... }} || ${{ ... }} expression into a single boolean expression so it no longer evaluates to the always-truthy string "false || false" and runs CUDA on every PR. Also include 'category: gpu/cuda (contrib)' to match the CUDA workflow guard. --- .github/workflows/PR-5.x.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/PR-5.x.yaml b/.github/workflows/PR-5.x.yaml index b7bb785e5f..587157aca2 100644 --- a/.github/workflows/PR-5.x.yaml +++ b/.github/workflows/PR-5.x.yaml @@ -32,7 +32,7 @@ jobs: uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-5.x-U20-OpenVINO.yaml@main Ubuntu2004-x64-CUDA: - if: "${{ contains(github.event.pull_request.labels.*.name, 'category: dnn') }} || ${{ contains(github.event.pull_request.labels.*.name, 'category: dnn (onnx)') }}" + if: "${{ contains(github.event.pull_request.labels.*.name, 'category: dnn') || contains(github.event.pull_request.labels.*.name, 'category: dnn (onnx)') || contains(github.event.pull_request.labels.*.name, 'category: gpu/cuda (contrib)') }}" uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-5.x-U20-Cuda.yaml@main # Vulkan configuration disabled as Vulkan backend for DNN does not support int/int64 for now