Skip to content

Commit fb5cbbe

Browse files
ci: gate cuda san on cuda changes (#8438)
CUDA san is slow gate it on CUDA changes. This is will post commit with san --------- Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
1 parent 9c4e0e4 commit fb5cbbe

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/cuda.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,26 @@ env:
2121
RUST_BACKTRACE: 1
2222

2323
jobs:
24+
changes:
25+
name: "Detect CUDA changes"
26+
runs-on: ubuntu-latest
27+
timeout-minutes: 10
28+
permissions:
29+
pull-requests: read
30+
outputs:
31+
run-cuda-san: ${{ github.event_name != 'pull_request' || steps.filter.outputs.cuda == 'true' }}
32+
steps:
33+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
34+
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4
35+
id: filter
36+
if: github.event_name == 'pull_request'
37+
with:
38+
filters: |
39+
cuda:
40+
- "vortex-cuda/**"
41+
- "vortex-test/**"
42+
- ".github/workflows/**"
43+
2444
cuda-build-lint:
2545
if: github.repository == 'vortex-data/vortex'
2646
name: "CUDA build & lint"
@@ -92,7 +112,10 @@ jobs:
92112
--verbose
93113
94114
cuda-test-sanitizer:
95-
if: github.repository == 'vortex-data/vortex'
115+
needs: [changes]
116+
if: >-
117+
always() && github.repository == 'vortex-data/vortex' &&
118+
needs.changes.outputs.run-cuda-san == 'true'
96119
name: "CUDA tests (${{ matrix.sanitizer }})"
97120
timeout-minutes: 30
98121
runs-on: runs-on=${{ github.run_id }}/runner=gpu/tag=cuda-test-sanitizer

0 commit comments

Comments
 (0)