Skip to content

Commit 8a199aa

Browse files
committed
test
1 parent 7765146 commit 8a199aa

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.github/workflows/build-tensorrt-linux.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ on:
7070
required: false
7171
type: boolean
7272
default: true
73+
upload-artifact:
74+
description: 'Name to give artifacts uploaded from ${inputs.repository}/dist'
75+
default: ''
76+
type: string
7377

7478
permissions:
7579
id-token: write
@@ -213,7 +217,7 @@ jobs:
213217
continue-on-error: true
214218
uses: actions/upload-artifact@v3
215219
with:
216-
name: torch_tensorrt_${{env.TENSORRT_VERSION}}_py${{env.PYTHON_VERSION}}_${{env.CU_VERSION}}
220+
name: ${{ inputs.upload-artifact }}
217221
path: ${{ inputs.repository }}/dist
218222

219223
concurrency:

.github/workflows/build-test-tensorrt-linux.yml

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
package-name: ${{ matrix.package-name }}
6868
smoke-test-script: ${{ matrix.smoke-test-script }}
6969
trigger-event: ${{ github.event_name }}
70+
upload-artifact: torch_tensorrt_${{ matrix.tensorrt.version }}_py${{ matrix.python_version }}_${{ matrix.desired_cuda }}
7071

7172
tests-py-torchscript-fe:
7273
name: Test torchscript frontend [Python]
@@ -89,6 +90,7 @@ jobs:
8990
test-infra-ref: main
9091
build-matrix: ${{ needs.generate-tensorrt-matrix.outputs.matrix }}
9192
pre-script: ${{ matrix.pre-script }}
93+
download-artifact: torch_tensorrt_${{ matrix.tensorrt.version }}_py${{ matrix.python_version }}_${{ matrix.desired_cuda }}
9294
script: |
9395
export USE_HOST_DEPS=1
9496
export CI_BUILD=1

.github/workflows/linux-test.yml

+11
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ on:
4949
description: "Prevents a job from failing when a step fails. Set to true to allow a job to pass when exec script step fails."
5050
default: false
5151
type: boolean
52+
download-artifact:
53+
description: 'Name of the artifacts to be downloaded'
54+
default: ''
55+
type: string
5256
upload-artifact:
5357
description: 'Name to give artifacts uploaded from ${RUNNER_ARTIFACT_DIR}'
5458
default: ''
@@ -112,10 +116,17 @@ jobs:
112116
repository: ${{ inputs.repository }}
113117
script: ${{ inputs.pre-script }}
114118
- name: Download artifacts
119+
if: ${{ inputs.download-artifact == '' }}
115120
uses: actions/download-artifact@v3
116121
with:
117122
name: ${{ env.ARTIFACT_NAME }}
118123
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/
119130
# - name: Install torch and torch-tensorrt
120131
# if: ${{ inputs.pre-script != '' }}
121132
# uses: ./test-infra/.github/actions/run-script-with-cache

0 commit comments

Comments
 (0)