-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: "CI - Nix" | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
nix: | ||
runs-on: "${{ matrix.os }}-latest" | ||
strategy: | ||
matrix: | ||
os: [ubuntu, macos] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@v27 | ||
- uses: cachix/cachix-action@v15 | ||
with: | ||
name: gepetto | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
- run: nix build -L |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
description = "Fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives."; | ||
|
||
inputs = { | ||
flake-parts.url = "github:hercules-ci/flake-parts"; | ||
#nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
# use gepetto fork until https://github.com/NixOS/nixpkgs/pull/337942 | ||
nixpkgs.url = "github:gepetto/nixpkgs"; | ||
}; | ||
|
||
outputs = | ||
inputs: | ||
inputs.flake-parts.lib.mkFlake { inherit inputs; } { | ||
systems = inputs.nixpkgs.lib.systems.flakeExposed; | ||
perSystem = | ||
{ pkgs, self', ... }: | ||
{ | ||
apps.default = { | ||
type = "app"; | ||
program = pkgs.python3.withPackages (_: [ self'.packages.default ]); | ||
}; | ||
devShells.default = pkgs.mkShell { inputsFrom = [ self'.packages.default ]; }; | ||
packages = { | ||
default = self'.packages.pinocchio; | ||
pinocchio = pkgs.python3Packages.pinocchio.overrideAttrs (_: { | ||
src = pkgs.lib.fileset.toSource { | ||
root = ./.; | ||
fileset = pkgs.lib.fileset.unions [ | ||
./benchmark | ||
./bindings | ||
./CMakeLists.txt | ||
./doc | ||
./examples | ||
./include | ||
./models | ||
./package.xml | ||
./sources.cmake | ||
./src | ||
./unittest | ||
./utils | ||
]; | ||
}; | ||
}); | ||
}; | ||
}; | ||
}; | ||
} |