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]