Skip to content

Commit bbfd586

Browse files
committed
ci: Add pixi-build test
1 parent c8e82bb commit bbfd586

File tree

9 files changed

+898
-39
lines changed

9 files changed

+898
-39
lines changed

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

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727

2828
jobs:
2929
eigenpy-pixi:
30-
name: ${{ matrix.os }} - Env ${{ matrix.environment }} ${{ matrix.build_type }} ${{ matrix.cxx_options }} ${{ matrix.compiler }}
30+
name: Standard - ${{ matrix.os }} - Env ${{ matrix.environment }} ${{ matrix.build_type }} ${{ matrix.cxx_options }} ${{ matrix.compiler }}
3131
runs-on: ${{ matrix.os }}
3232
env:
3333
CCACHE_BASEDIR: "${GITHUB_WORKSPACE}"
@@ -73,7 +73,7 @@ jobs:
7373
key: ccache-macos-linux-windows-pixi-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.cxx_options }}-${{ matrix.environment }}-${{ github.sha }}
7474
restore-keys: ccache-macos-linux-windows-pixi-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.cxx_options }}-${{ matrix.environment }}-
7575

76-
- uses: prefix-dev/[email protected].1
76+
- uses: prefix-dev/[email protected].2
7777
with:
7878
cache: true
7979
environments: ${{ matrix.environment }}
@@ -94,6 +94,29 @@ jobs:
9494
run: |
9595
pixi run -e ${{ matrix.environment }} ccache -sv
9696
97+
eigenpy-pixi-build:
98+
name: Pixi build - ${{ matrix.os }}
99+
runs-on: ${{ matrix.os }}
100+
101+
strategy:
102+
fail-fast: false
103+
matrix:
104+
os: [ubuntu-latest, macos-latest, macos-15-intel, windows-latest]
105+
106+
steps:
107+
- uses: actions/checkout@v5
108+
with:
109+
submodules: recursive
110+
111+
- uses: prefix-dev/[email protected]
112+
with:
113+
cache: true
114+
environments: test-pixi-build
115+
116+
- name: Test package [MacOS/Linux/Windows]
117+
run: |
118+
pixi run -e test-pixi-build test
119+
97120
check:
98121
if: always()
99122
name: check-macos-linux-windows-pixi

.github/workflows/update_pixi_lockfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
persist-credentials: false
2828

2929
- name: Set up pixi
30-
uses: prefix-dev/[email protected].1
30+
uses: prefix-dev/[email protected].2
3131
with:
3232
run-install: false
3333

pixi.lock

Lines changed: 857 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ python = ">=3.9.0"
4949

5050
[package.run-dependencies]
5151
scipy = ">=1.10.0"
52+
eigen = ">=3.4.0"
53+
libboost-devel = ">=1.80.0"
54+
libboost-python-devel = ">=1.80.0"
5255

5356
[target.unix.activation]
5457
scripts = ["development/scripts/pixi/activation.sh"]
@@ -156,6 +159,16 @@ platforms = ["linux-64"]
156159
activation = { env = { CC = "clang", CXX = "clang++" } }
157160
dependencies = { clangxx = "*" }
158161

162+
[feature.test-pixi-build.dependencies]
163+
eigenpy = { path = "." }
164+
cmake = ">=3.22"
165+
python = "*"
166+
167+
[feature.test-pixi-build.tasks]
168+
test-cmake = "cmake -S unittest/packaging/cmake -B build_test_pixi_build"
169+
test-python = "python -c 'import eigenpy'"
170+
test = { depends-on = ["test-cmake", "test-python"] }
171+
159172
[environments]
160173
default = { features = ["python-latest"], solve-group = "python-latest" }
161174
clang = { features = ["clang", "python-latest"] }
@@ -186,3 +199,4 @@ new-version = { features = [
186199
"cholmod",
187200
"python-latest",
188201
], solve-group = "python-latest" }
202+
test-pixi-build = { features = ["test-pixi-build"], no-default-feature = true }

unittest/packaging/cmake-2x/CMakeLists.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

unittest/packaging/cmake-2x/extra_lib.cpp

Lines changed: 0 additions & 7 deletions
This file was deleted.

unittest/packaging/cmake/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.6)
1+
cmake_minimum_required(VERSION 3.22)
22

33
project(ExtraLib CXX)
44
find_package(eigenpy REQUIRED)

unittest/packaging/pkgconfig/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

unittest/packaging/pkgconfig/extra_lib.cpp

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)