Skip to content

Commit 8aa4926

Browse files
committed
CI: Add testing of pytorch C++ API in CI for Linux
1 parent e88283f commit 8aa4926

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/CI.yml

+11
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,14 @@ jobs:
8383
export CPATH=$CONDA_PREFIX/include:$CPATH
8484
./integration_tests/run_tests.py -b gcc llvm wasm c
8585
./integration_tests/run_tests.py -b gcc llvm wasm c -f
86+
87+
- name: Test4 (Linux/macOS)
88+
shell: bash -l -e {0}
89+
if: contains(matrix.os, 'ubuntu')
90+
run: |
91+
export CPATH=$CONDA_PREFIX/include:$CPATH
92+
conda install --yes pytorch::pytorch
93+
cp -r $CONDA_PREFIX/lib/python3.12/site-packages/torch/include/* $CONDA_PREFIX/include/
94+
cp -r $CONDA_PREFIX/lib/python3.12/site-packages/torch/lib/* $CONDA_PREFIX/lib/
95+
cp -r $CONDA_PREFIX/lib/python3.12/site-packages/torch/share/* $CONDA_PREFIX/share/
96+
./integration_tests/run_tests.py -b pytorch

0 commit comments

Comments
 (0)