This is an automated email from the ASF dual-hosted git repository.

guanmingchiu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/mahout.git


The following commit(s) were added to refs/heads/main by this push:
     new 19808a1e3 [QDP] Add libtorch workflow (#822)
19808a1e3 is described below

commit 19808a1e316d83b15da735ba8f0b9a807785f9ae
Author: Ping <[email protected]>
AuthorDate: Wed Jan 14 22:21:58 2026 +0800

    [QDP] Add libtorch workflow (#822)
    
    Signed-off-by: 400Ping <[email protected]>
---
 .github/workflows/pre-commit.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index e7bba1b37..7d1ff7c22 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -43,5 +43,14 @@ jobs:
       - name: Install dependencies
         run: uv sync --group dev
 
+      - name: Install libtorch (CPU)
+        run: |
+          set -euo pipefail
+          libtorch_version="2.2.0"
+          
libtorch_zip="libtorch-cxx11-abi-shared-with-deps-${libtorch_version}%2Bcpu.zip"
+          curl -L -o libtorch.zip 
"https://download.pytorch.org/libtorch/cpu/${libtorch_zip}";
+          unzip -q libtorch.zip
+          echo "LIBTORCH=${GITHUB_WORKSPACE}/libtorch" >> "$GITHUB_ENV"
+
       - name: Run pre-commit hooks
         run: uv run pre-commit run --all-files

Reply via email to