File tree 3 files changed +123
-0
lines changed
3 files changed +123
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " CI - Nix"
2
+
3
+ on :
4
+ push :
5
+
6
+ jobs :
7
+ nix :
8
+ runs-on : " ${{ matrix.os }}-latest"
9
+ strategy :
10
+ matrix :
11
+ os : [ubuntu, macos]
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - uses : cachix/install-nix-action@v27
15
+ - uses : cachix/cachix-action@v15
16
+ with :
17
+ name : gepetto
18
+ authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
19
+ - run : nix build -L
Original file line number Diff line number Diff line change
1
+ {
2
+ description = "Fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives." ;
3
+
4
+ inputs = {
5
+ flake-parts . url = "github:hercules-ci/flake-parts" ;
6
+ #nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
7
+ # use gepetto fork until https://github.com/NixOS/nixpkgs/pull/337942
8
+ nixpkgs . url = "github:gepetto/nixpkgs" ;
9
+ } ;
10
+
11
+ outputs =
12
+ inputs :
13
+ inputs . flake-parts . lib . mkFlake { inherit inputs ; } {
14
+ systems = inputs . nixpkgs . lib . systems . flakeExposed ;
15
+ perSystem =
16
+ { pkgs , self' , ... } :
17
+ {
18
+ apps . default = {
19
+ type = "app" ;
20
+ program = pkgs . python3 . withPackages ( _ : [ self' . packages . default ] ) ;
21
+ } ;
22
+ devShells . default = pkgs . mkShell { inputsFrom = [ self' . packages . default ] ; } ;
23
+ packages = {
24
+ default = self' . packages . pinocchio ;
25
+ pinocchio = pkgs . python3Packages . pinocchio . overrideAttrs ( _ : {
26
+ src = pkgs . lib . fileset . toSource {
27
+ root = ./. ;
28
+ fileset = pkgs . lib . fileset . unions [
29
+ ./benchmark
30
+ ./bindings
31
+ ./CMakeLists.txt
32
+ ./doc
33
+ ./examples
34
+ ./include
35
+ ./models
36
+ ./package.xml
37
+ ./sources.cmake
38
+ ./src
39
+ ./unittest
40
+ ./utils
41
+ ] ;
42
+ } ;
43
+ } ) ;
44
+ } ;
45
+ } ;
46
+ } ;
47
+ }
You can’t perform that action at this time.
0 commit comments