File tree Expand file tree Collapse file tree 3 files changed +41
-36
lines changed
Expand file tree Collapse file tree 3 files changed +41
-36
lines changed Original file line number Diff line number Diff line change 11name : " CI - Nix"
2-
32on :
43 push :
54 branches :
65 - devel
76 - master
7+ - main
8+ - stable
89 pull_request :
910 branches :
1011 - devel
1112 - master
12-
13+ - main
14+ - stable
1315jobs :
14- tests :
15- name : " Nix build on ${{ matrix.os }}"
16+ nix :
1617 runs-on : " ${{ matrix.os }}-latest"
1718 strategy :
1819 matrix :
19- os : [ubuntu]
20+ os : [ubuntu, macos ]
2021 steps :
2122 - uses : actions/checkout@v4
22- - uses : cachix/install-nix-action@v27
23- - uses : cachix/cachix-action@v15
23+ - uses : cachix/install-nix-action@v31
24+ - uses : cachix/cachix-action@v16
2425 with :
2526 name : gepetto
2627 authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
27- - run : nix build -L
28+ - run : nix flake check -L
29+ check :
30+ if : always()
31+ name : check-macos-linux-nix
32+ runs-on : ubuntu-latest
33+ needs :
34+ - nix
35+ steps :
36+ - uses : re-actors/alls-green@release/v1
37+ with :
38+ jobs : ${{ toJSON(needs) }}
Original file line number Diff line number Diff line change 11pull_request_rules :
2- - name : merge automatically when CI passes and PR is approved
2+ - name : merge [bot] PRs when CI pass
33 conditions :
4- - check-success = "gitlab-ci"
5- - check-success = "Nix build on ubuntu"
4+ - check-success = "check-macos-linux-nix"
65 - check-success = "pre-commit.ci - pr"
76 - or :
8- - author = dependabot[bot]
9- - author = github-actions[bot]
10- - author = hrp2-14
11- - author = pre-commit-ci[bot]
7+ - author = dependabot[bot]
8+ - author = github-actions[bot]
9+ - author = hrp2-14
10+ - author = pre-commit-ci[bot]
1211 actions :
1312 merge :
Original file line number Diff line number Diff line change 22 description = "Tutorial for humanoid path planner platform" ;
33
44 inputs = {
5- nixpkgs . url = "github:NixOS/nixpkgs/refs/pull/362956/head" ;
6- flake-parts = {
7- url = "github:hercules-ci/flake-parts" ;
8- inputs . nixpkgs-lib . follows = "nixpkgs" ;
9- } ;
5+ gepetto . url = "github:gepetto/nix" ;
6+ flake-parts . follows = "gepetto/flake-parts" ;
7+ nixpkgs . follows = "gepetto/nixpkgs" ;
8+ nix-ros-overlay . follows = "gepetto/nix-ros-overlay" ;
9+ systems . follows = "gepetto/systems" ;
10+ treefmt-nix . follows = "gepetto/treefmt-nix" ;
1011 } ;
1112
1213 outputs =
13- inputs @{ flake-parts , ... } :
14- flake-parts . lib . mkFlake { inherit inputs ; } {
15- imports = [ ] ;
16- systems = [
17- "x86_64-linux"
18- "aarch64-linux"
19- "aarch64-darwin"
20- "x86_64-darwin"
21- ] ;
14+ inputs :
15+ inputs . flake-parts . lib . mkFlake { inherit inputs ; } {
16+ systems = import inputs . systems ;
17+ imports = [ inputs . gepetto . flakeModule ] ;
2218 perSystem =
2319 {
24- self' ,
20+ lib ,
2521 pkgs ,
26- system ,
22+ self' ,
2723 ...
2824 } :
2925 {
30- devShells . default = pkgs . mkShell { inputsFrom = [ self' . packages . default ] ; } ;
3126 packages = {
3227 default = self' . packages . hpp-tutorial ;
33- hpp-tutorial = pkgs . python3Packages . hpp-tutorial . overrideAttrs ( _ : {
34- src = pkgs . lib . fileset . toSource {
28+ hpp-tutorial = pkgs . python3Packages . hpp-tutorial . overrideAttrs {
29+ src = lib . fileset . toSource {
3530 root = ./. ;
36- fileset = pkgs . lib . fileset . unions [
31+ fileset = lib . fileset . unions [
3732 ./CMakeLists.txt
3833 ./doc
3934 ./include
4742 ./urdf
4843 ] ;
4944 } ;
50- } ) ;
45+ } ;
5146 } ;
5247 } ;
5348 } ;
You can’t perform that action at this time.
0 commit comments