File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 15
15
workflow_dispatch :
16
16
17
17
jobs :
18
- generate-matrix :
18
+ generate-windows-matrix :
19
+ name : generate-windows-matrix
19
20
if : ${{ github.event.workflow_run.conclusion == 'success' }}
20
21
uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
21
22
with :
26
27
with-rocm : false
27
28
with-cpu : false
28
29
29
- filter-matrix :
30
- needs : [generate-matrix]
30
+ filter-windows-matrix :
31
+ name : filter-windows-matrix
32
+ needs : [generate-windows-matrix]
31
33
outputs :
32
34
matrix : ${{ steps.generate.outputs.matrix }}
33
35
runs-on : ubuntu-latest
@@ -42,13 +44,13 @@ jobs:
42
44
id : generate
43
45
run : |
44
46
set -eou pipefail
45
- MATRIX_BLOB=${{ toJSON(needs.generate-matrix.outputs.matrix) }}
47
+ MATRIX_BLOB=${{ toJSON(needs.generate-windows- matrix.outputs.matrix) }}
46
48
MATRIX_BLOB="$(python3 .github/scripts/filter-matrix.py --matrix "${MATRIX_BLOB}")"
47
49
echo "${MATRIX_BLOB}"
48
50
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}"
49
51
50
52
substitute-runner :
51
- needs : filter-matrix
53
+ needs : filter-windows- matrix
52
54
outputs :
53
55
matrix : ${{ steps.substitute.outputs.matrix }}
54
56
runs-on : ubuntu-latest
58
60
run : |
59
61
echo matrix="$(echo '${{ needs.filter-matrix.outputs.matrix }}' | sed -e 's/windows.g4dn.xlarge/windows.g5.4xlarge.nvidia.gpu/g')" >> ${GITHUB_OUTPUT}
60
62
61
- build :
63
+ build-windows :
62
64
needs : substitute-runner
63
65
permissions :
64
66
id-token : write
@@ -321,4 +323,4 @@ jobs:
321
323
322
324
concurrency :
323
325
group : ${{ github.workflow }}-windows-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
324
- cancel-in-progress : false
326
+ cancel-in-progress : true
Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Lan test c
2
2
3
3
on :
4
4
workflow_call :
5
+ inputs :
6
+ job-name :
7
+ required : true
8
+ type : string
9
+ default : " test-c"
5
10
6
11
jobs :
7
12
test :
You can’t perform that action at this time.
0 commit comments