File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 66
77
88jobs :
9+ generate-matrix :
10+ runs-on : ubuntu-latest
11+ outputs :
12+ matrix : ${{ steps.generate-matrix.outputs.matrix }}
13+ steps :
14+ - name : Generate matrix
15+ id : generate-matrix
16+ run : |
17+ echo "matrix={\"cuda-version\":[\"12.8\", \"13.0\"]}" >> $GITHUB_OUTPUT
18+
919 build :
1020 runs-on : ubuntu-latest
21+ needs : [generate-matrix]
1122 strategy :
12- matrix :
13- cuda-version : [12.8, 13.0]
23+ matrix : ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
1424 steps :
1525 - name : Build with CUDA ${{ matrix.cuda-version }}
26+ id : build-step
1627 run : |
1728 echo "Building with CUDA ${{ matrix.cuda-version }}"
1829 if [ "${{ matrix.cuda-version }}" == "12.8" ]; then
@@ -23,13 +34,13 @@ jobs:
2334
2435 test :
2536 needs : [build]
26- if : always() && needs.build.result == 'success'
37+ if : always() && needs.build.build-step.outputs. result == 'success'
2738 runs-on : ubuntu-latest
2839 strategy :
29- matrix :
30- cuda-version : [12.8, 13.0]
40+ matrix : ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
3141 steps :
3242 - name : Test with CUDA ${{ matrix.cuda-version }}
3343 run : |
44+ echo "needs.build.build-step.result=${{ needs.build.build-step.result }}"
3445 echo "Testing with CUDA ${{ matrix.cuda-version }}"
3546
You can’t perform that action at this time.
0 commit comments