Skip to content

Commit 046de5a

Browse files
committed
Add torchvision-extra-decoders build test (exercises 3.15 native build)
torchvision-extra-decoders is a torch C++ extension (CppExtension over torch.utils.cpp_extension, install_requires=[], no torchvision needed), so it's a good probe for whether the binary build path works on a new Python such as 3.15/3.15t -- it actually compiles against libtorch for cp315 rather than just installing a pure-python package. Mirrors meta-pytorch/torchvision-extra-decoders' linux_wheel.yaml: cpu-only matrix, setup-py build, packaging/pre_build_script.sh (auditwheel + conda libavif/libheif), post_build_script.sh, and the fake smoke test. On PR CI the matrix is limited to 3.15/3.15t by the temporary force commit.
1 parent dd284d6 commit 046de5a

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Test Build Linux Wheels torchvision-extra-decoders
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/actions/setup-binary-builds/action.yml
7+
- .github/workflows/test_build_wheels_linux.yml
8+
- .github/workflows/build_wheels_linux.yml
9+
- .github/workflows/generate_binary_build_matrix.yml
10+
- .github/workflows/test_build_wheels_linux_extra_decoders.yml
11+
- tools/scripts/generate_binary_build_matrix.py
12+
- tools/pkg-helpers/pytorch_pkg_helpers/version.py
13+
workflow_dispatch:
14+
15+
permissions:
16+
id-token: write
17+
contents: read
18+
19+
jobs:
20+
generate-matrix:
21+
uses: ./.github/workflows/generate_binary_build_matrix.yml
22+
with:
23+
package-type: wheel
24+
os: linux
25+
test-infra-repository: ${{ github.repository }}
26+
test-infra-ref: ${{ github.ref }}
27+
with-cuda: disable
28+
with-rocm: disable
29+
with-xpu: disable
30+
build-python-only: disable
31+
test:
32+
needs: generate-matrix
33+
strategy:
34+
fail-fast: false
35+
# Build torchvision-extra-decoders (a torch C++ extension) to exercise the
36+
# binary build path on new Python versions (e.g. 3.15 / 3.15t). Mirrors
37+
# meta-pytorch/torchvision-extra-decoders/.github/workflows/linux_wheel.yaml.
38+
uses: ./.github/workflows/build_wheels_linux.yml
39+
name: torchvision-extra-decoders
40+
with:
41+
repository: meta-pytorch/torchvision-extra-decoders
42+
ref: main
43+
test-infra-repository: ${{ github.repository }}
44+
test-infra-ref: ${{ github.ref }}
45+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
46+
pre-script: packaging/pre_build_script.sh
47+
post-script: packaging/post_build_script.sh
48+
smoke-test-script: packaging/fake_smoke_test.py
49+
package-name: torchvision_extra_decoders
50+
trigger-event: "${{ github.event_name }}"

0 commit comments

Comments
 (0)