Add libtorch to github action

This commit is contained in:
2024-06-08 12:20:51 +02:00
parent c9ba35fb58
commit f34bcc2ed7

View File

@@ -22,6 +22,13 @@ jobs:
run: |
sudo apt-get -y install lcov
sudo apt-get -y install gcovr
- name: Install Libtorch
run: |
wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.3.1%2Bcpu.zip
unzip libtorch-cxx11-abi-shared-with-deps-1.9.0+cpu.zip
mv libtorch /usr/local
export LIBTORCH=/usr/local/libtorch
export Torch_DIR=/usr/local/libtorch
- name: Tests & build-wrapper
run: |
cmake -S . -B build -Wno-dev