Use CUDA_PATH as the if conditional for running workflow jobs
This commit is contained in:
5
.github/workflows/rules.yml
vendored
5
.github/workflows/rules.yml
vendored
@@ -1,6 +1,9 @@
|
|||||||
# A single CI script with github workflow
|
# A single CI script with github workflow
|
||||||
name: Tests
|
name: Tests
|
||||||
|
|
||||||
|
env:
|
||||||
|
CUDA_PATH: echo $CUDA_PATH
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -8,7 +11,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' && {{ $CUDA_PATH != '' }}
|
if: contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' && github.env.CUDA_PATH != ''
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
|
|||||||
Reference in New Issue
Block a user