Skip to content

Commit b3781eb

Browse files
committed
set LD_LIBRARY_PATH in actions
1 parent f6b371d commit b3781eb

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ jobs:
110110
sudo cmake --install build
111111
cmake --build build --target unit_tests -j$(nproc)
112112
cd build
113-
./unit_tests
113+
# Make sure the freshly built library wins over the one just installed in /usr/local/lib
114+
LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH ./unit_tests
114115
cd test/python
115116
python3 ./unit_tests_python.py
116117
cd ../..

.github/workflows/weekly-checks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ jobs:
119119
export PYTHONPATH="$SIMGRID_PYTHON_PATH:$FSMOD_PYTHON_PATH:$DTLMOD_PYTHON_PATH"
120120
echo "PYTHONPATH=$PYTHONPATH"
121121
cd build
122+
# Make sure the freshly built library wins over the one just installed in /usr/local/lib
123+
export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH
122124
./unit_tests 2>&1 | tee sanitizer-output.txt
123125
# Skip Python tests when running with sanitizers - ASan/UBSan don't work well with Python
124126
# The C++ unit tests already cover the core functionality
@@ -222,6 +224,8 @@ jobs:
222224
LD_LIBRARY_PATH: /opt/simgrid/lib:/opt/fsmod/lib:/usr/local/lib
223225
run: |
224226
cd build
227+
# Make sure the freshly built library wins over the one just installed in /usr/local/lib
228+
export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH
225229
cmake --build . --target valgrind
226230
227231
- name: Upload Valgrind report

0 commit comments

Comments
 (0)