updating cuda_path condition
This commit is contained in:
6
.github/workflows/rules.yml
vendored
6
.github/workflows/rules.yml
vendored
@@ -5,13 +5,17 @@ env:
|
|||||||
CUDA_PATH:
|
CUDA_PATH:
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [labeled]
|
types: [labeled]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' }} && env.CUDA_PATH != ''
|
env:
|
||||||
|
var_a: ${{ env.CUDA_PATH != ''}}
|
||||||
|
var_b: ${{ contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' }}
|
||||||
|
if: ${{ fromJSON(env.var_a) && fromJSON(env.var_b)}}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
|
|||||||
Reference in New Issue
Block a user