File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,29 @@ jobs:
3737 - run : nix build -L .#libpinocchio
3838 - run : nix build -L .#pinocchio-py
3939
40+ nix-eigen_5 :
41+ runs-on : " ${{ matrix.os }}-latest"
42+ strategy :
43+ fail-fast : false
44+ matrix :
45+ os : [ubuntu, macos]
46+ steps :
47+ - uses : actions/checkout@v5
48+ - uses : cachix/install-nix-action@v31
49+ - uses : cachix/cachix-action@v16
50+ with :
51+ name : gepetto
52+ authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
53+ - run : nix build -L .#libpinocchio-eigen_5
54+
4055 check :
4156 if : always()
4257 name : check-macos-linux-nix
4358
4459 needs :
4560 - nix-full
4661 - nix-split
62+ - nix-eigen_5
4763
4864 runs-on : Ubuntu-latest
4965
Original file line number Diff line number Diff line change 3030 } ;
3131 packages = {
3232 default = self' . packages . pinocchio ;
33+ eigen_5 = pkgs . eigen . overrideAttrs ( super : rec {
34+ version = "5.0.0" ;
35+ src = pkgs . fetchFromGitLab {
36+ inherit ( super . src ) owner repo ;
37+ tag = version ;
38+ hash = "sha256-L1KUFZsaibC/FD6abTXrT3pvaFhbYnw+GaWsxM2gaxM=" ;
39+ } ;
40+ patches = [ ] ;
41+ postPatch = "" ;
42+ } ) ;
3343 pinocchio = pkgs . python3Packages . pinocchio . overrideAttrs ( super : {
3444 propagatedBuildInputs = super . propagatedBuildInputs ++ [ pkgs . example-robot-data ] ;
3545 src = pkgs . lib . fileset . toSource {
7181 ] ;
7282 } ;
7383 } ) ;
84+
85+ libpinocchio-eigen_5 =
86+ ( self' . packages . libpinocchio . override { eigen = self' . packages . eigen_5 ; } ) . overrideAttrs
87+ ( super : {
88+ pname = "${ super . pname } -eigen_5" ;
89+ cmakeFlags = super . cmakeFlags ++ [
90+ "-DBUILD_WITH_CASADI_SUPPORT=OFF"
91+ "-DBUILD_WITH_COLLISION_SUPPORT=OFF"
92+ ] ;
93+ } ) ;
7494 pinocchio-py = pkgs . python3Packages . pinocchio . overrideAttrs ( super : {
7595 pname = "pinocchio-py" ;
7696 cmakeFlags = super . cmakeFlags ++ [ "-DBUILD_STANDALONE_PYTHON_INTERFACE=ON" ] ;
You can’t perform that action at this time.
0 commit comments