Skip to content

Commit 54ace39

Browse files
committed
test
1 parent 19b04e0 commit 54ace39

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/test-variant-dependency-workflow.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,24 @@ on:
66

77

88
jobs:
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

0 commit comments

Comments
 (0)