1212 - uses : actions/checkout@v4
1313 with :
1414 submodules : true
15- - uses : moonrepo /setup-rust@v1
15+ - uses : GuillaumeLagrange /setup-rust@feat/cache-extra-identifier
1616 with :
1717 components : rustfmt, clippy
1818 env :
5656 with :
5757 submodules : true
5858
59- - uses : moonrepo /setup-rust@v1
59+ - uses : GuillaumeLagrange /setup-rust@feat/cache-extra-identifier
6060 with :
6161 targets : ${{ matrix.job.target }}
62+ cache-extra-identifier : ${{ matrix.job.os }}-${{ matrix.job.target }}
6263 env :
6364 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6465
7576 - uses : actions/checkout@v4
7677 with :
7778 submodules : true
78- - uses : moonrepo /setup-rust@v1
79+ - uses : GuillaumeLagrange /setup-rust@feat/cache-extra-identifier
7980 with :
8081 bins : cargo-msrv
8182 env :
9596 - uses : actions/checkout@v4
9697 with :
9798 submodules : true
98- - uses : moonrepo /setup-rust@v1
99+ - uses : GuillaumeLagrange /setup-rust@feat/cache-extra-identifier
99100 with :
100101 bins : cargo-nextest
101102 env :
@@ -111,9 +112,10 @@ jobs:
111112 - uses : actions/checkout@v4
112113 with :
113114 submodules : true
114- - uses : moonrepo /setup-rust@v1
115+ - uses : GuillaumeLagrange /setup-rust@feat/cache-extra-identifier
115116 with :
116117 bins : cargo-nextest
118+ cache-extra-identifier : partition-${{ matrix.partition }}
117119 env :
118120 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
119121 - run : cargo nextest run -p cargo-codspeed --partition hash:${{ matrix.partition }}/5
@@ -132,9 +134,10 @@ jobs:
132134 - uses : actions/checkout@v4
133135 with :
134136 submodules : true
135- - uses : moonrepo /setup-rust@v1
137+ - uses : GuillaumeLagrange /setup-rust@feat/cache-extra-identifier
136138 with :
137139 cache-target : release
140+ cache-extra-identifier : ${{ matrix.build-args }}
138141 env :
139142 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
140143
@@ -163,9 +166,10 @@ jobs:
163166 - uses : actions/checkout@v4
164167 with :
165168 submodules : true
166- - uses : moonrepo /setup-rust@v1
169+ - uses : GuillaumeLagrange /setup-rust@feat/cache-extra-identifier
167170 with :
168171 cache-target : release
172+ cache-extra-identifier : walltime-${{ matrix.package }}
169173 env :
170174 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
171175
@@ -199,9 +203,10 @@ jobs:
199203 - uses : actions/checkout@v4
200204 with :
201205 submodules : true
202- - uses : moonrepo /setup-rust@v1
206+ - uses : GuillaumeLagrange /setup-rust@feat/cache-extra-identifier
203207 with :
204208 targets : ${{ matrix.target }}
209+ cache-extra-identifier : ${{ matrix.runner }}-${{ matrix.target }}
205210 env :
206211 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
207212
0 commit comments