Skip to content

Commit c166756

Browse files
committed
pixi: Use environment variable to improve genericity
1 parent c1912d8 commit c166756

File tree

5 files changed

+4681
-4826
lines changed

5 files changed

+4681
-4826
lines changed

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

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,22 @@ jobs:
3737
fail-fast: false
3838
matrix:
3939
os: [ubuntu-latest, macos-latest, macos-14]
40-
environment: [py38-ci, py312-ci, accelerate-ci]
40+
environment: [all, all_py39]
4141
build_type: [Release, Debug]
4242
cxx_options: ['', '-mavx2']
4343

4444
exclude:
45-
- os: ubuntu-latest
46-
environment: accelerate-ci
47-
- os: macos-latest
48-
environment: accelerate-ci
4945
- os: macos-latest
5046
cxx_options: '-mavx2'
5147
- os: macos-14
5248
cxx_options: '-mavx2'
53-
- os: macos-14
54-
environment: py312-ci
5549

5650
include:
5751
- os: windows-latest
58-
environment: py312-ci
52+
environment: all
5953
compiler: cl
6054
- os: windows-latest
61-
environment: py312-ci
55+
environment: all
6256
compiler: clang-cl
6357

6458
steps:
@@ -72,23 +66,21 @@ jobs:
7266
key: ccache-macos-linux-windows-pixi-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.cxx_options }}-${{ matrix.environment }}-${{ github.sha }}
7367
restore-keys: ccache-macos-linux-windows-pixi-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.cxx_options }}-${{ matrix.environment }}-
7468

75-
- uses: prefix-dev/setup-pixi@v0.5.1
69+
- uses: prefix-dev/setup-pixi@v0.8.1
7670
with:
77-
pixi-version: v0.18.0
71+
pixi-version: v0.31.0
7872
cache: true
7973
environments: ${{ matrix.environment }}
74+
activate-environment: true
8075

8176
- name: Build EigenPy [MacOS/Linux]
82-
shell: pixi run bash -el {0}
8377
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
8478
env:
8579
CMAKE_BUILD_PARALLEL_LEVEL: 4
80+
EIGENPY_BUILD_TYPE: ${{ matrix.build_type }}
81+
EIGENPY_CXX_FLAGS: ${{ matrix.cxx_options }}
8682
run: |
87-
# We can't setup these variables in env because
88-
# conda and pixi activation script can overwrite them
89-
export CMAKE_BUILD_TYPE=${{ matrix.build_type }}
90-
export CXXFLAGS=${{ matrix.cxx_options }}
91-
pixi run -e ${{ matrix.environment }} test
83+
pixi run test
9284
9385
- name: Build EigenPy [Windows]
9486
shell: pixi run bash -el {0}
@@ -98,7 +90,7 @@ jobs:
9890
CXX: ${{ matrix.compiler }}
9991
CMAKE_BUILD_PARALLEL_LEVEL: 4
10092
run: |
101-
pixi run -e ${{ matrix.environment }} test
93+
pixi run test
10294
10395
check:
10496
if: always()

0 commit comments

Comments
 (0)