|
69 | 69 | id: jobs |
70 | 70 | job: |
71 | 71 | name: ${{ matrix.full_name }} |
72 | | - needs: [ calculate_matrix ] |
| 72 | + needs: [calculate_matrix] |
73 | 73 | runs-on: "${{ matrix.os }}" |
74 | 74 | timeout-minutes: 360 |
75 | 75 | # The bors environment contains secrets required for elevated workflows (try and auto builds), |
@@ -117,31 +117,43 @@ jobs: |
117 | 117 | with: |
118 | 118 | fetch-depth: 2 |
119 | 119 |
|
| 120 | + # Clear cargo cache between runs to avoid cache effects |
| 121 | + - name: clear cargo cache |
| 122 | + run: rm -rf ~/.cargo/registry ~/.cargo/git /tmp/cargo-install* |
| 123 | + |
120 | 124 | - name: install typos-cli 0 |
121 | 125 | run: time RUSTFLAGS="-Copt-level=0" cargo install [email protected] --force --quiet --locked |
122 | 126 |
|
123 | 127 | - name: run typos-cli 0 |
124 | 128 | run: time typos compiler library src/bootstrap src/librustdoc |
125 | 129 |
|
| 130 | + - name: clear cargo cache |
| 131 | + run: rm -rf ~/.cargo/registry ~/.cargo/git /tmp/cargo-install* |
| 132 | + |
126 | 133 | - name: install typos-cli 1 |
127 | 134 | run: time RUSTFLAGS="-Copt-level=1" cargo install [email protected] --force --quiet --locked |
128 | 135 |
|
129 | 136 | - name: run typos-cli 1 |
130 | 137 | run: time typos compiler library src/bootstrap src/librustdoc |
131 | 138 |
|
| 139 | + - name: clear cargo cache |
| 140 | + run: rm -rf ~/.cargo/registry ~/.cargo/git /tmp/cargo-install* |
| 141 | + |
132 | 142 | - name: install typos-cli 2 |
133 | 143 | run: time RUSTFLAGS="-Copt-level=2" cargo install [email protected] --force --quiet --locked |
134 | 144 |
|
135 | 145 | - name: run typos-cli 2 |
136 | 146 | run: time typos compiler library src/bootstrap src/librustdoc |
137 | 147 |
|
| 148 | + - name: clear cargo cache |
| 149 | + run: rm -rf ~/.cargo/registry ~/.cargo/git /tmp/cargo-install* |
| 150 | + |
138 | 151 | - name: install typos-cli 3 (default) |
139 | | - run: time cargo install [email protected] --force --quiet --locked |
| 152 | + run: time RUSTFLAGS="-Copt-level=3" cargo install [email protected] --force --quiet --locked |
140 | 153 |
|
141 | 154 | - name: run typos-cli 3 |
142 | 155 | run: time typos compiler library src/bootstrap src/librustdoc |
143 | 156 |
|
144 | | - |
145 | 157 | # Free up disk space on Linux by removing preinstalled components that |
146 | 158 | # we do not need. We do this to enable some of the less resource |
147 | 159 | # intensive jobs to run on free runners, which however also have |
@@ -333,7 +345,7 @@ jobs: |
333 | 345 | outcome: |
334 | 346 | name: bors build finished |
335 | 347 | runs-on: ubuntu-24.04 |
336 | | - needs: [ calculate_matrix, job ] |
| 348 | + needs: [calculate_matrix, job] |
337 | 349 | # !cancelled() executes the job regardless of whether the previous jobs passed or failed |
338 | 350 | if: ${{ !cancelled() && contains(fromJSON('["auto", "try"]'), needs.calculate_matrix.outputs.run_type) }} |
339 | 351 | steps: |
|
0 commit comments