Skip to content

Commit 0d1ccbf

Browse files
committed
pixi: Avoid to run configure twice
1 parent f8575ea commit 0d1ccbf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/macos-linux-conda.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,15 @@ jobs:
6969
environments: ${{ matrix.environment }}
7070

7171
- name: Build EigenPy
72-
shell: bash -el {0}
72+
shell: pixi run bash -el {0}
7373
run: |
7474
pixi run -e ${{ matrix.environment }} \
7575
configure \
7676
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
7777
-DCMAKE_CXX_FLAGS=${{ matrix.cxx_options }}
78-
pixi run -e ${{ matrix.environment }} build
79-
pixi run -e ${{ matrix.environment }} test
78+
# Don't run build and clean to not overwrite CMAKE_BUILD_TYPE and CMAKE_CXX_FLAGS
79+
cmake --build build --target all
80+
ctest --test-dir build --output-on-failure
8081
8182
check:
8283
if: always()

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ base_configure = { cmd = [
3939
configure = { depends_on = ["base_configure"] }
4040
build = { cmd = "cmake --build build --target all", depends_on = ["configure"] }
4141
clean = { cmd = "rm -rf build" }
42-
test = { cmd = "ctest --test-dir build --output-on-failure ", depends_on = [
42+
test = { cmd = "ctest --test-dir build --output-on-failure", depends_on = [
4343
"build",
4444
] }
4545

0 commit comments

Comments
 (0)