@@ -25,20 +25,24 @@ jobs:
2525 - name : Checkout repository
2626 uses : actions/checkout@v4
2727
28- - name : Restore cargo cache
29- uses : Swatinem/rust- cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609
28+ - name : Cache cargo
29+ uses : actions/ cache@v4
3030 with :
31- shared-key : ${{ runner.os }}-cargo-metrics-${{ github.sha }}
32- cache-targets : " false"
31+ path : |
32+ ~/.cargo/bin/
33+ ~/.cargo/registry/index/
34+ ~/.cargo/registry/cache/
35+ ~/.cargo/git/db/
36+ key : ${{ runner.os }}-cargo-${{ github.sha }}
3337
3438 - name : Collect build metrics
3539 run : cargo xtask metrics build
3640
3741 - name : Cache target
38- uses : Swatinem/rust- cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609
42+ uses : actions/ cache@v4
3943 with :
40- shared-key : ${{ runner.os }}-cargo-metrics-${{ github.sha }}
41- cache-targets : " true "
44+ path : target/
45+ key : ${{ runner.os }}-target-${{ github.sha }}
4246
4347 - name : Upload build metrics
4448 uses : actions/upload-artifact@v4
@@ -64,11 +68,11 @@ jobs:
6468 - name : Checkout repository
6569 uses : actions/checkout@v4
6670
67- - name : Restore cargo cache
68- uses : Swatinem/rust- cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609
71+ - name : Restore target cache
72+ uses : actions/ cache@v4
6973 with :
70- shared-key : ${{ runner.os }}-cargo-metrics-${{ github.sha }}
71- cache-targets : " true "
74+ path : target/
75+ key : ${{ runner.os }}-target-${{ github.sha }}
7276
7377 - name : Collect metrics
7478 run : cargo xtask metrics "${{ matrix.names }}"
0 commit comments