Remove the unused outputs
This commit is contained in:
6
.github/workflows/rules.yml
vendored
6
.github/workflows/rules.yml
vendored
@@ -20,14 +20,12 @@ jobs:
|
|||||||
- id: step2
|
- id: step2
|
||||||
run: echo "test=${{ contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' }}" >> "$GITHUB_OUTPUT"
|
run: echo "test=${{ contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' }}" >> "$GITHUB_OUTPUT"
|
||||||
outputs:
|
outputs:
|
||||||
cuda_on: ${{ steps.step1.outputs.test }}
|
cuda_avail: ${{ fromJSON(steps.step1.outputs.test) && fromJSON(steps.step2.outputs.test) }}
|
||||||
git_event: ${{ steps.step2.outputs.test }}
|
|
||||||
test_gpu: ${{ fromJSON(steps.step1.outputs.test) && fromJSON(steps.step2.outputs.test) }}
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
# job to build
|
# job to build
|
||||||
needs: check
|
needs: check
|
||||||
if: ${{fromJSON(needs.check.outputs.test_gpu)}}
|
if: ${{fromJSON(needs.check.outputs.cuda_avail)}}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
|
|||||||
Reference in New Issue
Block a user