Skip to content

Commit

Permalink
Add valgrind tests in pixi
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro committed Nov 5, 2024
1 parent b787f74 commit 7a1e128
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 1 deletion.
71 changes: 71 additions & 0 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,23 @@ description = "Simple Eigen-C++ wrapper for OSQP library."
channels = ["conda-forge"]
platforms = ["linux-64", "linux-aarch64", "win-64", "osx-64", "osx-arm64"]


[target.win.activation.env]
CMAKE_INSTALL_PREFIX = "%CONDA_PREFIX%\\Library"
OSQPEIGEN_RUN_Valgrind_tests = "OFF"

[target.unix.activation.env]
CMAKE_INSTALL_PREFIX = "$CONDA_PREFIX"
OSQPEIGEN_RUN_Valgrind_tests = "OFF"

[target.linux.activation.env]
OSQPEIGEN_RUN_Valgrind_tests = "ON"

[tasks]
configure = { cmd = [
"cmake",
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX",
"-DOSQPEIGEN_RUN_Valgrind_tests=$OSQPEIGEN_RUN_Valgrind_tests",
"-DBUILD_TESTING:BOOL=ON",
# Use the cross-platform Ninja generator
"-G",
Expand Down Expand Up @@ -48,3 +54,6 @@ libosqp = "*"
eigen = "*"
ycm-cmake-modules = "*"
catch2 = "*"

[target.linux.dependencies]
valgrind = "*"

0 comments on commit 7a1e128

Please sign in to comment.