Tmate let's find with ldconfig ?

This commit is contained in:
Nicolas Patry 2024-09-16 16:18:29 +02:00
parent c784cb401d
commit 69c20a9d3f
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863
2 changed files with 3 additions and 2 deletions

View File

@ -30,10 +30,12 @@ jobs:
USER: github_runner USER: github_runner
- name: Build - name: Build
run: nix develop .#test --command echo "Ok" run: nix develop .#test --command echo "Ok"
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- name: Python tests. - name: Python tests.
run: | run: |
sudo mkdir -p /run/opengl-driver/lib/ sudo mkdir -p /run/opengl-driver/lib/
export NVIDIA=$(nix build --print-out-paths .#nvidia-libs)/lib/ export NVIDIA=/usr/lib/
sudo find $NVIDIA . -name 'libcuda.so*' -exec ln -s {} /run/opengl-driver/lib/ \; sudo find $NVIDIA . -name 'libcuda.so*' -exec ln -s {} /run/opengl-driver/lib/ \;
sudo find $NVIDIA . -name 'libnvidia-ml.so*' -exec ln -s {} /run/opengl-driver/lib/ \; sudo find $NVIDIA . -name 'libnvidia-ml.so*' -exec ln -s {} /run/opengl-driver/lib/ \;
nix develop .#test --command pytest -svvx integration-tests/ --release nix develop .#test --command pytest -svvx integration-tests/ --release

View File

@ -149,7 +149,6 @@
}; };
}; };
packages.nvidia-libs = pkgs.linuxPackages.nvidia_x11_legacy535.lib32;
packages.default = pkgs.writeShellApplication { packages.default = pkgs.writeShellApplication {
name = "text-generation-inference"; name = "text-generation-inference";
runtimeInputs = [ runtimeInputs = [