Skip to content

Commit 44f77d7

Browse files
committed
Build as release on MSVC
1 parent 9ec5c5a commit 44f77d7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pixi.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cwd = "."
2727

2828
[feature.build.tasks.build-only]
2929
# Just build without configure
30-
cmd = ["cmake", "--build", "build"]
30+
cmd = ["cmake", "--build", "build", "--config", "Release"]
3131
cwd = "."
3232

3333
[feature.build.tasks.build]
@@ -97,15 +97,18 @@ ccache = ">=4.11.2,<5"
9797
[feature.tests-ci.tasks]
9898
# Build and generate coverage report
9999
# TODO: use a task arg for parallelism https://github.com/prefix-dev/pixi/pull/3433
100-
build-tests-ci.cmd = ["cmake", "--build", "build", "-j3"]
100+
build-tests-ci.cmd = ["cmake", "--build", "build", "-j3", "--config", "Release"]
101101
build-tests-ci.depends-on = ["clone-xsref", "configure-coverage"]
102102
build-tests-ci.cwd = "."
103103
# Run tests
104104
tests-ci.cmd = ["ctest", "--output-on-failure", "--test-dir", "build/tests", "-j3"]
105105
tests-ci.depends-on = ["build-tests-ci"]
106106
tests-ci.cwd = "."
107107
# Coverage
108-
coverage.cmd = ["cmake", "--build", "build", "--target", "coverage_html", "-j3"]
108+
coverage.cmd = [
109+
"cmake", "--build", "build", "--target", "coverage_html", "-j3",
110+
"--config", "Release"
111+
]
109112
coverage.depends-on = ["tests-ci"]
110113
coverage.cwd = "."
111114
# Tests and coverage

0 commit comments

Comments
 (0)