Check CUDA_PATH to determine if CUDA is installed and if the build job needs to run

This commit is contained in:
Liwei Yang
2023-09-12 12:13:23 +08:00
parent b84ccadb20
commit e91045f5a3

View File

@@ -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]