@@ -26,22 +26,15 @@ jobs:
2626 no-ros :
2727 name : ROS-independent Test
2828 runs-on : ubuntu-latest
29+ permissions :
30+ id-token : write
31+ contents : read
2932
3033 steps :
3134 - name : Checkout repository
3235 uses : actions/checkout@v4
3336
34- - name : Install Nix
35- uses : cachix/install-nix-action@v27
36- with :
37- nix_path : nixpkgs=channel:nixos-unstable
38- extra_nix_config : |
39- experimental-features = nix-command flakes
40- accept-flake-config = true
41-
42- - name : Setup sccache
43- if : env.ACT != 'true'
44- uses : mozilla-actions/sccache-action@v0.0.9
37+ - uses : DeterminateSystems/determinate-nix-action@v3
4538
4639 - name : Clippy (default workspace)
4740 run : |
7972 with-ros :
8073 name : ROS-dependent Test (${{ matrix.distro }})
8174 runs-on : ubuntu-latest
75+ permissions :
76+ id-token : write
77+ contents : read
8278 strategy :
8379 matrix :
8480 distro : [jazzy]
8884 - name : Checkout repository
8985 uses : actions/checkout@v4
9086
91- - name : Install Nix
92- uses : cachix/install-nix-action@v27
87+ - uses : DeterminateSystems/determinate-nix-action@v3
9388 with :
94- nix_path : nixpkgs=channel:nixos-unstable
95- extra_nix_config : |
96- experimental-features = nix-command flakes
97- accept-flake-config = true
89+ extra-conf : |
9890 extra-substituters = https://ros.cachix.org
9991 extra-trusted-public-keys = ros.cachix.org-1:dSyZxI8geDCJrwgvCOHDoAfOm5sV1wCPjBkKL+38Rvo=
10092
@@ -105,10 +97,6 @@ jobs:
10597 authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
10698 skipPush : true
10799
108- - name : Setup sccache
109- if : env.ACT != 'true'
110- uses : mozilla-actions/sccache-action@v0.0.9
111-
112100 - name : Clippy (all targets, all features)
113101 run : |
114102 nix develop '.#ros-${{ matrix.distro }}-ci' -c \
0 commit comments