File tree 3 files changed +18
-1
lines changed
3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 70
70
required : false
71
71
type : boolean
72
72
default : true
73
+ upload-artifact :
74
+ description : ' Name to give artifacts uploaded from ${inputs.repository}/dist'
75
+ default : ' '
76
+ type : string
73
77
74
78
permissions :
75
79
id-token : write
@@ -213,7 +217,7 @@ jobs:
213
217
continue-on-error : true
214
218
uses : actions/upload-artifact@v3
215
219
with :
216
- name : torch_tensorrt_ ${{env.TENSORRT_VERSION}}_py${{env.PYTHON_VERSION}}_${{env.CU_VERSION }}
220
+ name : ${{ inputs.upload-artifact }}
217
221
path : ${{ inputs.repository }}/dist
218
222
219
223
concurrency :
Original file line number Diff line number Diff line change 67
67
package-name : ${{ matrix.package-name }}
68
68
smoke-test-script : ${{ matrix.smoke-test-script }}
69
69
trigger-event : ${{ github.event_name }}
70
+ upload-artifact : torch_tensorrt_${{ matrix.tensorrt.version }}_py${{ matrix.python_version }}_${{ matrix.desired_cuda }}
70
71
71
72
tests-py-torchscript-fe :
72
73
name : Test torchscript frontend [Python]
89
90
test-infra-ref : main
90
91
build-matrix : ${{ needs.generate-tensorrt-matrix.outputs.matrix }}
91
92
pre-script : ${{ matrix.pre-script }}
93
+ download-artifact : torch_tensorrt_${{ matrix.tensorrt.version }}_py${{ matrix.python_version }}_${{ matrix.desired_cuda }}
92
94
script : |
93
95
export USE_HOST_DEPS=1
94
96
export CI_BUILD=1
Original file line number Diff line number Diff line change 49
49
description : " Prevents a job from failing when a step fails. Set to true to allow a job to pass when exec script step fails."
50
50
default : false
51
51
type : boolean
52
+ download-artifact :
53
+ description : ' Name of the artifacts to be downloaded'
54
+ default : ' '
55
+ type : string
52
56
upload-artifact :
53
57
description : ' Name to give artifacts uploaded from ${RUNNER_ARTIFACT_DIR}'
54
58
default : ' '
@@ -112,10 +116,17 @@ jobs:
112
116
repository : ${{ inputs.repository }}
113
117
script : ${{ inputs.pre-script }}
114
118
- name : Download artifacts
119
+ if : ${{ inputs.download-artifact == '' }}
115
120
uses : actions/download-artifact@v3
116
121
with :
117
122
name : ${{ env.ARTIFACT_NAME }}
118
123
path : /opt/torch-tensorrt-builds/
124
+ - name : Download artifacts
125
+ if : ${{ inputs.download-artifact != '' }}
126
+ uses : actions/download-artifact@v3
127
+ with :
128
+ name : ${{ inputs.download-artifact }}
129
+ path : /opt/torch-tensorrt-builds/
119
130
# - name: Install torch and torch-tensorrt
120
131
# if: ${{ inputs.pre-script != '' }}
121
132
# uses: ./test-infra/.github/actions/run-script-with-cache
You can’t perform that action at this time.
0 commit comments