|
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 |
56 | 52 | upload-artifact: |
57 | 53 | description: 'Name to give artifacts uploaded from ${RUNNER_ARTIFACT_DIR}' |
58 | 54 | default: '' |
|
72 | 68 | SCRIPT: ${{ inputs.script }} |
73 | 69 | RUNNER_TEST_RESULTS_DIR: /tmp/test_results |
74 | 70 | ARCH: ${{ inputs.architecture }} |
| 71 | + DOWNLOAD_ARTIFACT_NAME: torch_tensorrt_${{ matrix.tensorrt.version }}_py${{ matrix.python_version }}_${{ matrix.desired_cuda }} |
75 | 72 | name: ${{ inputs.job-name }}-${{ matrix.desired_cuda }} |
76 | 73 | runs-on: ${{ matrix.validation_runner }} |
77 | 74 | container: |
@@ -116,16 +113,16 @@ jobs: |
116 | 113 | repository: ${{ inputs.repository }} |
117 | 114 | script: ${{ inputs.pre-script }} |
118 | 115 | - name: Download artifacts |
119 | | - if: ${{ inputs.download-artifact == '' }} |
| 116 | + if: ${{ matrix.tensorrt == '' }} |
120 | 117 | uses: actions/download-artifact@v3 |
121 | 118 | with: |
122 | 119 | name: ${{ env.ARTIFACT_NAME }} |
123 | 120 | path: /opt/torch-tensorrt-builds/ |
124 | 121 | - name: Download artifacts |
125 | | - if: ${{ inputs.download-artifact != '' }} |
| 122 | + if: ${{ matrix.tensorrt != '' }} |
126 | 123 | uses: actions/download-artifact@v3 |
127 | 124 | with: |
128 | | - name: ${{ inputs.download-artifact }} |
| 125 | + name: ${{ env.DOWNLOAD_ARTIFACT_NAME }} |
129 | 126 | path: /opt/torch-tensorrt-builds/ |
130 | 127 | # - name: Install torch and torch-tensorrt |
131 | 128 | # if: ${{ inputs.pre-script != '' }} |
|
0 commit comments