Skip to content

Commit d88dbfc

Browse files
committed
pixi: Run Windows CI in the same workflow
1 parent 0d1ccbf commit d88dbfc

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ jobs:
5151
- os: macos-14
5252
cxx_options: '-mavx2'
5353

54+
include:
55+
- os: windows-latest
56+
compiler: cl
57+
- os: windows-latest
58+
compiler: clang-cl
59+
5460
steps:
5561
- uses: actions/checkout@v4
5662
with:
@@ -70,6 +76,7 @@ jobs:
7076

7177
- name: Build EigenPy
7278
shell: pixi run bash -el {0}
79+
if: contains(${{ matrix.os }}, 'ubuntu') || contains(${{ matrix.os }}, macos)
7380
run: |
7481
pixi run -e ${{ matrix.environment }} \
7582
configure \
@@ -79,6 +86,21 @@ jobs:
7986
cmake --build build --target all
8087
ctest --test-dir build --output-on-failure
8188
89+
- name: Build EigenPy
90+
shell: pixi run cmd /C CALL {0}
91+
if: contains(${{ matrix.os }}, 'windows')
92+
env:
93+
CC: ${{ matrix.compiler }}
94+
CXX: ${{ matrix.compiler }}
95+
run: |
96+
pixi run -e ${{ matrix.environment }} ^
97+
configure ^
98+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ^
99+
-DCMAKE_CXX_FLAGS=${{ matrix.cxx_options }}
100+
# Don't run build and clean to not overwrite CMAKE_BUILD_TYPE and CMAKE_CXX_FLAGS
101+
cmake --build build --target all
102+
ctest --test-dir build --output-on-failure
103+
82104
check:
83105
if: always()
84106
name: check-macos-linux-conda

0 commit comments

Comments
 (0)