From 59f5cdca7cabc17e1e94c106a204a2bbae2c3c98 Mon Sep 17 00:00:00 2001 From: lanluo-nvidia Date: Sun, 16 Jun 2024 21:13:18 -0700 Subject: [PATCH] test --- .github/scripts/build-linux-release-artifacts.sh | 3 +++ .github/workflows/linux-release-artifacts.yml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/.github/scripts/build-linux-release-artifacts.sh b/.github/scripts/build-linux-release-artifacts.sh index 699b964f57..f82a108b0c 100644 --- a/.github/scripts/build-linux-release-artifacts.sh +++ b/.github/scripts/build-linux-release-artifacts.sh @@ -42,6 +42,9 @@ python -m auditwheel repair \ --plat manylinux_2_34_x86_64 \ /opt/torch-tensorrt-builds/torch_tensorrt-*-${PY_BUILD_CODE}-linux_x86_64.whl +if [[ ! -d dist ]]; then + mkdir dist +fi cp wheelhouse/torch_tensorrt*x86_64.whl dist/ CUDA_VERSION=$(python -c "import versions; versions.cuda_version()") diff --git a/.github/workflows/linux-release-artifacts.yml b/.github/workflows/linux-release-artifacts.yml index c8ac2dd157..f79ccb5aeb 100644 --- a/.github/workflows/linux-release-artifacts.yml +++ b/.github/workflows/linux-release-artifacts.yml @@ -146,6 +146,12 @@ jobs: with: repository: ${{ inputs.repository }} script: exec_script + - name: Upload release artifacts to GitHub + continue-on-error: true + uses: actions/upload-artifact@v3 + with: + name: release_${{ env.ARTIFACT_NAME }} + path: ${{ inputs.repository }}/dist/ # - name: Surface failing tests # if: always() # uses: pmeier/pytest-results-action@v0.3.0