Skip to content
Merged
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
1 change: 0 additions & 1 deletion .ci/scripts/setup-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ fi

# As Linux job is running inside a Docker container, all of its dependencies
# have already been installed
install_flatc_from_source
install_executorch
build_executorch_runner "${BUILD_TOOL}"
2 changes: 0 additions & 2 deletions .ci/scripts/setup-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,5 @@ if [[ -z "${GITHUB_RUNNER:-}" ]]; then
fi

print_cmake_info
install_pytorch_and_domains
install_flatc_from_source
install_executorch
build_executorch_runner "${BUILD_TOOL}"
36 changes: 0 additions & 36 deletions .ci/scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,42 +33,6 @@ install_pip_dependencies() {
popd || return
}

install_domains() {
echo "Install torchvision and torchaudio"
pip install --no-use-pep517 --user "git+https://github.com/pytorch/audio.git@${TORCHAUDIO_VERSION}"
pip install --no-use-pep517 --user "git+https://github.com/pytorch/vision.git@${TORCHVISION_VERSION}"
}

install_pytorch_and_domains() {
pushd .ci/docker || return
TORCH_VERSION=$(cat ci_commit_pins/pytorch.txt)
popd || return

git clone https://github.com/pytorch/pytorch.git

# Fetch the target commit
pushd pytorch || return
git checkout "${TORCH_VERSION}"
git submodule update --init --recursive

export _GLIBCXX_USE_CXX11_ABI=0
# Then build and install PyTorch
python setup.py bdist_wheel
pip install "$(echo dist/*.whl)"

# Grab the pinned audio and vision commits from PyTorch
TORCHAUDIO_VERSION=$(cat .github/ci_commit_pins/audio.txt)
export TORCHAUDIO_VERSION
TORCHVISION_VERSION=$(cat .github/ci_commit_pins/vision.txt)
export TORCHVISION_VERSION

install_domains

popd || return
# Print sccache stats for debugging
sccache --show-stats || true
}

install_flatc_from_source() {
# NB: This function could be used to install flatbuffer from source
pushd third-party/flatbuffers || return
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ jobs:
conda activate "${CONDA_ENV}"

source .ci/scripts/utils.sh
install_flatc_from_source
install_executorch

install_arm
Expand All @@ -169,7 +168,6 @@ jobs:
conda activate "${CONDA_ENV}"

source .ci/scripts/utils.sh
install_flatc_from_source
install_executorch

install_arm
Expand Down