Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pixi/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
run-post-link-scripts = "insecure"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export PATH="/root/.pixi/bin:$PATH"
cd user/
git clone git@github.com:prashjha/PeriDEM.git
cd PeriDEM/
pixi run build
pixi run test
```

### Future plans
Expand Down
27 changes: 20 additions & 7 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ name = "PeriDEM"
platforms = ["linux-64", "osx-arm64"]
version = "v0.2.1"

# Currently can't install, only build?
# c.f. https://github.com/prashjha/PeriDEM/blob/8f73cbd12fbf8d483bb46670661f9f2641d03c37/README.md?plain=1#L264
[tasks.build]
description = "Build PeriDEM from local source"
cmd = """
rm -rf build && \
cmake -DEnable_Documentation=OFF \
-DEnable_Tests=ON \
-DEnable_High_Load_Tests=OFF \
Expand All @@ -20,16 +18,31 @@ cmake -DEnable_Documentation=OFF \
-S . \
-B build && \
cmake build -LH && \
cmake --build build --clean-first --parallel "$(nproc --ignore=2)" && \
ctest --verbose --test-dir build/
cmake --build build --clean-first --parallel "$(nproc --ignore=2)"
"""

[tasks.ctest]
description = "Run tests with ctest"
cmd = "ctest --verbose --test-dir ./build/"

[tasks.install-peridem]
description = "Install PeriDEM under CMAKE_INSTALL_PREFIX defined in build"
cmd = "cmake --install build"

[tasks.start]
description = "Build and install PeriDEM"
depends-on = ["build", "install-peridem"]

[tasks.test]
description = "Do a clean build of PeriDEM and run ctest tests"
depends-on = ["build", "ctest"]

[dependencies]
cxx-compiler = ">=1.11.0,<2"
cmake = "<4"
cmake = ">=4.2.1,<5"
make = ">=4.4.1,<5"
vtk = ">=9.5.2,<10"
yaml-cpp = ">=0.8.0,<0.9"
metis = ">=5.2.1,<6"
openmpi = ">=5.0.8,<6"
gmsh = ">=4.13.1,<5" # for tests
gmsh = ">=4.15.0,<5" # for tests