@@ -37,29 +37,29 @@ jobs:
3737 with-cuda : disable
3838 build-python-only : " disable"
3939
40- build :
41- needs : generate-matrix
42- strategy :
43- fail-fast : false
44- name : Build and Upload Windows wheel
45- # TODO: use @main
46- uses : nicolashug/test-infra/.github/workflows/build_wheels_windows.yml@build-platform-windows
47- with :
48- repository : pytorch/torchcodec
49- ref : " "
50- test-infra-repository : nicolashug/test-infra
51- test-infra-ref : build-platform-windows
52- build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
53- pre-script : packaging/pre_build_script.sh
54- # post-script: packaging/post_build_script.sh TODO: consider enabling post-build checks for Windows
55- env-script : packaging/vc_env_helper.bat
56- smoke-test-script : packaging/fake_smoke_test.py
57- package-name : torchcodec
58- trigger-event : ${{ github.event_name }}
59- build-platform : " python-build-package"
60- # The BUILD_AGAINST_ALL_FFMPEG_FROM_S3 var, needed to build the wheel, is
61- # set in vc_env_helper.bat Couldn't find a way to set it from here.
62- build-command : " python -m build --wheel -vvv --no-isolation"
40+ # build:
41+ # needs: generate-matrix
42+ # strategy:
43+ # fail-fast: false
44+ # name: Build and Upload Windows wheel
45+ # # TODO: use @main
46+ # uses: nicolashug/test-infra/.github/workflows/build_wheels_windows.yml@build-platform-windows
47+ # with:
48+ # repository: pytorch/torchcodec
49+ # ref: ""
50+ # test-infra-repository: nicolashug/test-infra
51+ # test-infra-ref: build-platform-windows
52+ # build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
53+ # pre-script: packaging/pre_build_script.sh
54+ # # post-script: packaging/post_build_script.sh TODO: consider enabling post-build checks for Windows
55+ # env-script: packaging/vc_env_helper.bat
56+ # smoke-test-script: packaging/fake_smoke_test.py
57+ # package-name: torchcodec
58+ # trigger-event: ${{ github.event_name }}
59+ # build-platform: "python-build-package"
60+ # # The BUILD_AGAINST_ALL_FFMPEG_FROM_S3 var, needed to build the wheel, is
61+ # # set in vc_env_helper.bat Couldn't find a way to set it from here.
62+ # build-command: "python -m build --wheel -vvv --no-isolation"
6363
6464 # install-and-test:
6565 # runs-on: windows-latest
@@ -152,15 +152,17 @@ jobs:
152152 # - "3.12"
153153 runner : ["windows.4xlarge"]
154154 gpu-arch-type : ["cpu"]
155- ffmpeg-version-for-tests : ['4.4.2', '5.1.2', '6.1.1', '7.0.1']
155+ ffmpeg-version-for-tests : ['6.1.1']
156+ # ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1']
156157 # TODO: put GPU testing back
157158 # include:
158159 # - python-version: "3.9"
159160 # runner: windows.g5.4xlarge.nvidia.gpu
160161 # gpu-arch-type: cuda
161162 # gpu-arch-version: "11.8"
162163 fail-fast : false
163- needs : build
164+ # needs: build
165+ needs : generate-matrix # TODO REMOVE
164166 uses : pytorch/test-infra/.github/workflows/windows_job.yml@main
165167 permissions :
166168 id-token : write
@@ -182,6 +184,16 @@ jobs:
182184 export GPU_ARCH_VERSION=${{ matrix.gpu-arch-version }}
183185 export FFMPEG_VERSION_FOR_TESTS=${{ matrix.ffmpeg-version-for-tests }}
184186
187+ # Prepare conda
188+ set +x && eval "$($(which conda) shell.bash hook)" && set -x
189+
190+ echo '::group::Create build environment'
191+ conda create \
192+ --name ci \
193+ --quiet --yes \
194+ python="${PYTHON_VERSION}" pip \
195+ conda activate ci
196+
185197 # Download and install wheel
186198 python -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
187199 wheel_path=$(find pytorch/torchcodec/dist -type f -name "*${{ matrix.python-version }}*.whl" | head -1)
0 commit comments