Skip to content

Commit ac8dce9

Browse files
committed
test
1 parent 8824afb commit ac8dce9

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/scripts/build-linux-release-artifacts.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,16 @@ libtorchtrt() {
5555
PY_NAME=python${PYTHON_VERSION}
5656
PY_DIR=/opt/python/${PY_BUILD_CODE}
5757

58-
python -m pip install -r ${PROJECT_DIR}/py/requirements.txt
59-
60-
TORCH_VERSION=$(python -c "from torch import __version__;print(__version__.split('+')[0])")
58+
#python -m pip install -r ${PROJECT_DIR}/py/requirements.txt
6159

6260
if [[ '${pre_cxx11_abi}' == 'true' ]]; then
6361
bazel build //:libtorchtrt --config pre_cxx11_abi --platforms //toolchains:ci_rhel_x86_64_linux -c opt --noshow_progress
6462
cp ${PROJECT_DIR}/bazel-bin/libtorchtrt.tar.gz \
65-
${PROJECT_DIR}/dist/libtorchtrt-${TORCHTRT_VERSION}-pre-cxx11-abi-tensorrt${TRT_VERSION}-cuda${CU_VERSION}-libtorch${TORCH_VERSION}-x86_64-linux.tar.gz
63+
${PROJECT_DIR}/dist/libtorchtrt-${TORCHTRT_VERSION}-pre-cxx11-abi-tensorrt${TRT_VERSION}-cuda${CU_VERSION}-libtorch${PYTORCH_VERSION}-x86_64-linux.tar.gz
6664
else
6765
bazel build //:libtorchtrt --platforms //toolchains:ci_rhel_x86_64_linux -c opt --noshow_progress
6866
cp ${PROJECT_DIR}/bazel-bin/libtorchtrt.tar.gz \
69-
${PROJECT_DIR}/dist/libtorchtrt-${TORCHTRT_VERSION}-tensorrt${TRT_VERSION}-cuda${CU_VERSION}-libtorch${TORCH_VERSION}-x86_64-linux.tar.gz
67+
${PROJECT_DIR}/dist/libtorchtrt-${TORCHTRT_VERSION}-tensorrt${TRT_VERSION}-cuda${CU_VERSION}-libtorch${PYTORCH_VERSION}-x86_64-linux.tar.gz
7068
fi
7169
}
7270

.github/workflows/linux-release-artifacts.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ jobs:
100100
with:
101101
github-secret: ${{ github.token }}
102102
- uses: ./test-infra/.github/actions/set-channel
103+
- name: Set PYTORCH_VERSION
104+
if: ${{ env.CHANNEL == 'test' }}
105+
run: |
106+
# When building RC, set the version to be the current candidate version,
107+
# otherwise, leave it alone so nightly will pick up the latest
108+
echo "PYTORCH_VERSION=${{ matrix.stable_version }}" >> "${GITHUB_ENV}"
103109
- uses: ./test-infra/.github/actions/setup-binary-builds
104110
with:
105111
repository: ${{ inputs.repository }}

0 commit comments

Comments
 (0)