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 1
1
name : " CI - Nix"
2
-
3
2
on :
4
3
push :
5
4
branches :
6
5
- devel
7
6
- master
7
+ - main
8
+ - stable
8
9
pull_request :
9
10
branches :
10
11
- devel
11
12
- master
12
-
13
+ - main
14
+ - stable
13
15
jobs :
14
- tests :
15
- name : " Nix build on ${{ matrix.os }}"
16
+ nix :
16
17
runs-on : " ${{ matrix.os }}-latest"
17
18
strategy :
18
19
matrix :
19
- os : [ubuntu]
20
+ os : [ubuntu, macos ]
20
21
steps :
21
22
- 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
24
25
with :
25
26
name : gepetto
26
27
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 1
1
pull_request_rules :
2
- - name : merge automatically when CI passes and PR is approved
2
+ - name : merge [bot] PRs when CI pass
3
3
conditions :
4
- - check-success = "gitlab-ci"
5
- - check-success = "Nix build on ubuntu"
4
+ - check-success = "check-macos-linux-nix"
6
5
- check-success = "pre-commit.ci - pr"
7
6
- 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]
12
11
actions :
13
12
merge :
Original file line number Diff line number Diff line change 2
2
description = "Tutorial for humanoid path planner platform" ;
3
3
4
4
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" ;
10
11
} ;
11
12
12
13
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 ] ;
22
18
perSystem =
23
19
{
24
- self' ,
20
+ lib ,
25
21
pkgs ,
26
- system ,
22
+ self' ,
27
23
...
28
24
} :
29
25
{
30
- devShells . default = pkgs . mkShell { inputsFrom = [ self' . packages . default ] ; } ;
31
26
packages = {
32
27
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 {
35
30
root = ./. ;
36
- fileset = pkgs . lib . fileset . unions [
31
+ fileset = lib . fileset . unions [
37
32
./CMakeLists.txt
38
33
./doc
39
34
./include
47
42
./urdf
48
43
] ;
49
44
} ;
50
- } ) ;
45
+ } ;
51
46
} ;
52
47
} ;
53
48
} ;
You can’t perform that action at this time.
0 commit comments