Skip to content

Commit 58737c3

Browse files
authored
Merge pull request #49 from matthewfeickert/mnt/update-pixi
ENH: Add 'start' and additional tasks to Pixi manifest
2 parents 0c16b1e + 8d6fc46 commit 58737c3

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

.pixi/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
run-post-link-scripts = "insecure"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export PATH="/root/.pixi/bin:$PATH"
332332
cd user/
333333
git clone git@github.com:prashjha/PeriDEM.git
334334
cd PeriDEM/
335-
pixi run build
335+
pixi run test
336336
```
337337

338338
### Future plans

pixi.toml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ name = "PeriDEM"
44
platforms = ["linux-64", "osx-arm64"]
55
version = "v0.2.1"
66

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

24+
[tasks.ctest]
25+
description = "Run tests with ctest"
26+
cmd = "ctest --verbose --test-dir ./build/"
27+
28+
[tasks.install-peridem]
29+
description = "Install PeriDEM under CMAKE_INSTALL_PREFIX defined in build"
30+
cmd = "cmake --install build"
31+
32+
[tasks.start]
33+
description = "Build and install PeriDEM"
34+
depends-on = ["build", "install-peridem"]
35+
36+
[tasks.test]
37+
description = "Do a clean build of PeriDEM and run ctest tests"
38+
depends-on = ["build", "ctest"]
39+
2740
[dependencies]
2841
cxx-compiler = ">=1.11.0,<2"
29-
cmake = "<4"
42+
cmake = ">=4.2.1,<5"
3043
make = ">=4.4.1,<5"
3144
vtk = ">=9.5.2,<10"
3245
yaml-cpp = ">=0.8.0,<0.9"
3346
metis = ">=5.2.1,<6"
3447
openmpi = ">=5.0.8,<6"
35-
gmsh = ">=4.13.1,<5" # for tests
48+
gmsh = ">=4.15.0,<5" # for tests

0 commit comments

Comments
 (0)