6464 runs-on : ${{ inputs.run-label }}
6565 steps :
6666 - name : Checkout
67- uses : actions/checkout@v4
67+ uses : actions/checkout@v5
6868 with :
6969 token : ${{ secrets.PRIVATE_SUBMODULE_ACCESS_TOKEN || github.token }}
7070 submodules : recursive
7777 components : ' cargo,clippy'
7878 override : true
7979
80+ - name : Cache Cargo registry
81+ uses : actions/cache@v4
82+ with :
83+ path : |
84+ ~/.cargo/bin/
85+ ~/.cargo/registry/
86+ ~/.cargo/git/
87+ target/
88+ key : ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
89+
8090 - name : Install Protoc
8191 if : ${{ inputs.install-protoc == true }}
8292 uses : arduino/setup-protoc@v3
98108 runs-on : ${{ inputs.run-label }}
99109 steps :
100110 - name : Checkout
101- uses : actions/checkout@v4
111+ uses : actions/checkout@v5
102112 with :
103113 token : ${{ secrets.PRIVATE_SUBMODULE_ACCESS_TOKEN || github.token }}
104114 submodules : recursive
@@ -109,6 +119,16 @@ jobs:
109119 profile : ' default'
110120 override : true
111121
122+ - name : Cache Cargo registry
123+ uses : actions/cache@v4
124+ with :
125+ path : |
126+ ~/.cargo/bin/
127+ ~/.cargo/registry/
128+ ~/.cargo/git/
129+ target/
130+ key : ${{ runner.os }}-cargo-formatting-${{ hashFiles('**/Cargo.lock') }}
131+
112132 - name : Run sccache-cache
113133 if : ${{ inputs.use-sccache == true }}
114134 uses :
mozilla-actions/[email protected] @@ -124,7 +144,7 @@ jobs:
124144 runs-on : ${{ inputs.run-label }}
125145 steps :
126146 - name : Checkout
127- uses : actions/checkout@v4
147+ uses : actions/checkout@v5
128148 with :
129149 token : ${{ secrets.PRIVATE_SUBMODULE_ACCESS_TOKEN || github.token }}
130150 submodules : recursive
@@ -136,6 +156,16 @@ jobs:
136156 profile : ' default'
137157 override : true
138158
159+ - name : Cache Cargo registry
160+ uses : actions/cache@v4
161+ with :
162+ path : |
163+ ~/.cargo/bin/
164+ ~/.cargo/registry/
165+ ~/.cargo/git/
166+ target/
167+ key : ${{ runner.os }}-cargo-tests-${{ hashFiles('**/Cargo.lock') }}
168+
139169 - name : Install Protoc
140170 if : ${{ inputs.install-protoc == true }}
141171 uses : arduino/setup-protoc@v3
@@ -162,7 +192,7 @@ jobs:
162192 runs-on : ${{ inputs.run-label }}
163193 steps :
164194 - name : Checkout
165- uses : actions/checkout@v4
195+ uses : actions/checkout@v5
166196 with :
167197 token : ${{ secrets.PRIVATE_SUBMODULE_ACCESS_TOKEN || github.token }}
168198 submodules : recursive
@@ -182,6 +212,16 @@ jobs:
182212 profile : ' default'
183213 override : true
184214
215+ - name : Cache Cargo registry
216+ uses : actions/cache@v4
217+ with :
218+ path : |
219+ ~/.cargo/bin/
220+ ~/.cargo/registry/
221+ ~/.cargo/git/
222+ target/
223+ key : ${{ runner.os }}-cargo-tests-suites-${{ hashFiles('**/Cargo.lock') }}
224+
185225 - name : Install Protoc
186226 if : ${{ inputs.install-protoc == true }}
187227 uses : arduino/setup-protoc@v3
@@ -204,7 +244,7 @@ jobs:
204244 if : ${{ inputs.check-udeps }}
205245 steps :
206246 - name : Checkout
207- uses : actions/checkout@v4
247+ uses : actions/checkout@v5
208248 with :
209249 token : ${{ secrets.PRIVATE_SUBMODULE_ACCESS_TOKEN || github.token }}
210250 submodules : recursive
@@ -216,6 +256,16 @@ jobs:
216256 profile : ' default'
217257 override : true
218258
259+ - name : Cache Cargo registry
260+ uses : actions/cache@v4
261+ with :
262+ path : |
263+ ~/.cargo/bin/
264+ ~/.cargo/registry/
265+ ~/.cargo/git/
266+ target/
267+ key : ${{ runner.os }}-cargo-unused-deps-${{ hashFiles('**/Cargo.lock') }}
268+
219269 - name : Run sccache-cache
220270 if : ${{ inputs.use-sccache == true }}
221271 uses :
mozilla-actions/[email protected] @@ -230,7 +280,7 @@ jobs:
230280 name : Licenses
231281 runs-on : ${{ inputs.run-label }}
232282 steps :
233- - uses : actions/checkout@v4
283+ - uses : actions/checkout@v5
234284 with :
235285 token : ${{ secrets.PRIVATE_SUBMODULE_ACCESS_TOKEN || github.token }}
236286 submodules : recursive
0 commit comments