From e91045f5a3bc978a64dbaa7215e7f52dd2843fc2 Mon Sep 17 00:00:00 2001 From: Liwei Yang Date: Tue, 12 Sep 2023 12:13:23 +0800 Subject: [PATCH] Check CUDA_PATH to determine if CUDA is installed and if the build job needs to run --- .github/workflows/rules.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rules.yml b/.github/workflows/rules.yml index c0f2917..d1c0632 100644 --- a/.github/workflows/rules.yml +++ b/.github/workflows/rules.yml @@ -8,7 +8,7 @@ on: jobs: build: - if: contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' + if: contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' && {{ $CUDA_PATH != '' }} strategy: matrix: os: [ubuntu-latest]