Skip to content

Commit 0efe6d7

Browse files
authored
Merge pull request #369 from Simple-Robotics/update-pixi-fields
Update pixi.toml for pixi 0.58.0
2 parents 3973bf0 + 9a11233 commit 0efe6d7

File tree

11 files changed

+3747
-3090
lines changed

11 files changed

+3747
-3090
lines changed

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

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

2828
jobs:
2929
aligator-pixi:
30-
name: ${{ matrix.os }} - Env ${{ matrix.environment }} ${{ matrix.build_type }}
30+
name: Standard ${{ matrix.os }} - Env ${{ matrix.environment }} ${{ matrix.build_type }}
3131
runs-on: ${{ matrix.os }}
3232
env:
3333
CCACHE_BASEDIR: "${GITHUB_WORKSPACE}"
@@ -39,7 +39,7 @@ jobs:
3939
fail-fast: false
4040
matrix:
4141
os: [ubuntu-latest, macos-latest, macos-15-intel]
42-
environment: [all, all-py310]
42+
environment: [all, all-python-oldest]
4343
build_type: [Release, Debug]
4444

4545
steps:
@@ -58,6 +58,10 @@ jobs:
5858
cache: true
5959
environments: ${{ matrix.environment }}
6060

61+
- name: Clear ccache statistics
62+
run: |
63+
pixi run -e ${{ matrix.environment }} ccache -z
64+
6165
- name: Build aligator
6266
shell: bash -l {0}
6367
env:
@@ -66,6 +70,35 @@ jobs:
6670
run: |
6771
pixi run -e ${{ matrix.environment }} test
6872
73+
- name: Show ccache statistics
74+
run: |
75+
pixi run -e ${{ matrix.environment }} ccache -sv
76+
77+
aligator-pixi-build:
78+
name: Pixi build - ${{ matrix.os }}
79+
runs-on: ${{ matrix.os }}
80+
81+
strategy:
82+
fail-fast: false
83+
matrix:
84+
os: [ubuntu-latest, macos-latest, macos-15-intel]
85+
86+
steps:
87+
- uses: actions/checkout@v5
88+
with:
89+
submodules: recursive
90+
91+
- uses: prefix-dev/[email protected]
92+
env:
93+
CMAKE_BUILD_PARALLEL_LEVEL: 2
94+
with:
95+
cache: true
96+
environments: test-pixi-build
97+
98+
- name: Test package
99+
run: |
100+
pixi run -e test-pixi-build test
101+
69102
check:
70103
name: check-macos-linux-pixi
71104

.gitlab-ci.yml

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

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ci:
55
submodules: true
66
repos:
77
- repo: https://github.com/pre-commit/mirrors-clang-format
8-
rev: v21.1.1
8+
rev: v21.1.2
99
hooks:
1010
- id: clang-format
1111
types_or: []
@@ -29,13 +29,13 @@ repos:
2929
)$
3030
- repo: https://github.com/astral-sh/ruff-pre-commit
3131
# Ruff version.
32-
rev: 'v0.13.0'
32+
rev: 'v0.14.2'
3333
hooks:
3434
- id: ruff
3535
args: [--fix, --exit-non-zero-on-fix]
3636
- id: ruff-format
3737
- repo: https://github.com/BlankSpruce/gersemi
38-
rev: 0.22.2
38+
rev: 0.22.3
3939
hooks:
4040
- id: gersemi
4141
- repo: https://github.com/Lucas-C/pre-commit-hooks

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- pixi: add pixi-build (preview support) (https://github.com/Simple-Robotics/aligator/pull/369)
1213
- gar/blk-matrix : added `BlkMatrix::isApprox()` (https://github.com/Simple-Robotics/aligator/pull/366)
1314
- core : added [mimalloc](https://github.com/mimalloc/mimalloc)-based memory resource (https://github.com/Simple-Robotics/aligator/pull/366)
1415
- modelling/costs : add getter and setter for cost term weights (https://github.com/Simple-Robotics/aligator/pull/359)
@@ -19,6 +20,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1920

2021
### Changed
2122

23+
- python : do not import utils.plotting automatically (https://github.com/Simple-Robotics/aligator/pull/369)
24+
- ci: display ccache statistics (https://github.com/Simple-Robotics/aligator/pull/369)
25+
- pixi: update environments (https://github.com/Simple-Robotics/aligator/pull/369)
2226
- move header `<aligator/gar/blk-matrix.hpp>` to `<aligator/core/blk-matrix>`
2327
- solver-proxddp : make new `mimalloc` memory resource the allocator resource for ProxDDP solver (https://github.com/Simple-Robotics/aligator/pull/367)
2428
- tests/gar/block-matrix.cpp : test against BunchKaufman factorization
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
from . import plotting

development/pixi/activation.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,10 @@ then
2020
# On GNU/Linux, I don't know if these flags are mandatory with g++ but
2121
# it allow to use clang++ as compiler
2222
export LDFLAGS="-Wl,-rpath,$CONDA_PREFIX/lib -Wl,-rpath-link,$CONDA_PREFIX/lib -L$CONDA_PREFIX/lib"
23+
export CCACHE_COMPILERTYPE=gcc
2324
fi
24-
25-
# Setup ccache
26-
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
27-
28-
# Create compile_commands.json for language server
29-
export CMAKE_EXPORT_COMPILE_COMMANDS=1
30-
31-
# Activate color output with Ninja
32-
export CMAKE_COLOR_DIAGNOSTICS=1
25+
# Without -isystem, some LSP can't find headers
26+
export ALIGATOR_CXX_FLAGS="$CXXFLAGS -isystem $CONDA_PREFIX/include"
3327

3428
# Set default build value only if not previously set
3529
export ALIGATOR_BUILD_TYPE=${ALIGATOR_BUILD_TYPE:=Release}

development/pixi/activation_clang.sh

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

development/release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
To create a release with Pixi run the following commands on the **main** branch:
44

55
```bash
6-
ALIGATOR_VERSION=X.Y.Z pixi run release_new_version
6+
ALIGATOR_VERSION=X.Y.Z pixi run release-new-version
77
git push origin
88
git push origin vX.Y.Z
99
```

0 commit comments

Comments
 (0)