Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try against lf runner #14

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/linux_wheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ defaults:
jobs:

generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@linux-cpu-runner-lf
with:
package-type: wheel
os: linux
test-infra-repository: pytorch/test-infra
test-infra-ref: main
test-infra-ref: linux-cpu-runner-lf
with-xpu: disable
with-rocm: disable
with-cuda: disable
Expand All @@ -42,12 +42,12 @@ jobs:
strategy:
fail-fast: false
name: Build and Upload Linux wheel
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@linux-cpu-runner-lf
with:
repository: pytorch-labs/torchvision-extra-decoders
ref: ""
test-infra-repository: pytorch/test-infra
test-infra-ref: main
test-infra-ref: linux-cpu-runner-lf
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: packaging/pre_build_script.sh
post-script: packaging/post_build_script.sh
Expand Down
15 changes: 11 additions & 4 deletions packaging/post_build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

set -ex

old="linux_x86_64"
new="manylinux_2_17_x86_64.manylinux2014_x86_64"
echo "Replacing ${old} with ${new} in wheel name"
mv dist/*${old}*.whl $(echo dist/*${old}*.whl | sed "s/${old}/${new}/")
ls dist
wheel_path=`find dist -type f -name "*.whl"`

echo Found $wheel_path

auditwheel -v repair --plat manylinux_2_38_x86_64 $wheel_path --exclude libtorch_python.so --exclude libc10.so --exclude libtorch.so --exclude libtorch_cpu.so --wheel-dir dist

# old="linux_x86_64"
# new="manylinux_2_17_x86_64.manylinux2014_x86_64"
# echo "Replacing ${old} with ${new} in wheel name"
# mv dist/*${old}*.whl $(echo dist/*${old}*.whl | sed "s/${old}/${new}/")
1 change: 1 addition & 0 deletions packaging/pre_build_script.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash

pip install auditwheel
conda install libavif libheif -c conda-forge -yq
Loading