-
Notifications
You must be signed in to change notification settings - Fork 13
/
pixi.toml
63 lines (49 loc) · 1.62 KB
/
pixi.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[project]
name = "resolvo"
authors = ["Bas Zalmstra <[email protected]>"]
channels = ["conda-forge"]
platforms = ["linux-64", "win-64", "osx-arm64", "osx-64"]
[tasks]
format = {depends_on = ["format-rust", "format-cpp", "format-cmake"] }
test = {depends_on = ["test-rust", "test-cpp"] }
# ---- Build Rust using Cargo ----
[feature.build-rust.dependencies]
rust = "~=1.75.0"
[feature.test-rust.tasks.test-rust]
cmd = "cargo test"
[feature.test-rust.tasks.format-rust]
cmd = "cargo fmt"
[environments.test-rust]
features = ["build-rust", "test-rust"]
solve-group = "default"
# ---- Build C++ using CMake ----
[feature.build-cpp.dependencies]
cmake = ">=3.29.4,<3.30"
cxx-compiler = ">=1.7.0,<1.8"
ninja = ">=1.12.1,<1.13"
[feature.build-cpp.tasks.configure]
cmd = "cmake -GNinja -S . -B build -DRESOLVO_BUILD_TESTING=ON"
inputs = ["CMakeLists.txt"]
outputs = ["build/CMakeFiles/"]
[feature.build-cpp.tasks.build-cpp]
cmd = ["cmake", "--build", "build"]
depends-on = ["configure"]
inputs = ["CMakeLists.txt", "cpp/**/*", "src/**"]
outputs = ["build/bin/*"]
[feature.build-cpp.tasks.test-cpp]
cmd = "ctest --test-dir build"
depends_on = ["build-cpp"]
[environments.test-cpp]
features = ["build-cpp", "build-rust"]
solve-group = "default"
# ---- Format C++ ----
[feature.format-cpp.dependencies]
clang-format = ">=18.1.6,<18.2"
cmake-format = ">=0.6.13,<0.7"
[feature.format-cpp.tasks.format-cpp]
cmd = "clang-format -i cpp/include/*.h cpp/tests/*.cpp"
[feature.format-cpp.tasks.format-cmake]
cmd = "cmake-format -i CMakeLists.txt cpp/CMakeLists.txt cpp/tests/CMakeLists.txt"
[environments.format-cpp]
features=["format-cpp"]
solve-group="default"