diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 53e3bbd79..54019ab50 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -65,6 +65,8 @@ jobs: run: | cuda_version_without_periods=$(echo "${{ matrix.cuda-version }}" | sed 's/\.//g') echo cuda_version_without_periods=${cuda_version_without_periods} >> $GITHUB_ENV + python_version_without_periods=$(echo "${{ matrix.python-version }}" | sed 's/\.//g') + echo python_version_without_periods=${python_version_without_periods} >> $GITHUB_ENV - uses: actions/download-artifact@v3 with: name: pytorch_torchcodec__${{ matrix.python-version }}_cu${{ env.cuda_version_without_periods }}_x86_64 @@ -95,7 +97,7 @@ jobs: ${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")' - name: Install torchcodec from the wheel run: | - wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"` + wheel_path=`find pytorch/torchcodec/dist -type f -name "*cu${{ env.cuda_version_without_periods }}-cp${{ env.python_version_without_periods }}*.whl"` echo Installing $wheel_path ${CONDA_RUN} python -m pip install $wheel_path -vvv diff --git a/.github/workflows/linux_cuda_wheel.yaml b/.github/workflows/linux_cuda_wheel.yaml index a620cd615..17538d275 100644 --- a/.github/workflows/linux_cuda_wheel.yaml +++ b/.github/workflows/linux_cuda_wheel.yaml @@ -77,6 +77,8 @@ jobs: run: | cuda_version_without_periods=$(echo "${{ matrix.cuda-version }}" | sed 's/\.//g') echo cuda_version_without_periods=${cuda_version_without_periods} >> $GITHUB_ENV + python_version_without_periods=$(echo "${{ matrix.python-version }}" | sed 's/\.//g') + echo python_version_without_periods=${python_version_without_periods} >> $GITHUB_ENV - uses: actions/download-artifact@v3 with: name: pytorch_torchcodec__${{ matrix.python-version }}_cu${{ env.cuda_version_without_periods }}_x86_64 @@ -107,7 +109,7 @@ jobs: ${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")' - name: Install torchcodec from the wheel run: | - wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"` + wheel_path=`find pytorch/torchcodec/dist -type f -name "*cu${{ env.cuda_version_without_periods }}-cp${{ env.python_version_without_periods }}*.whl"` echo Installing $wheel_path ${CONDA_RUN} python -m pip install $wheel_path -vvv