We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 93da290 + be720fd commit 3963172Copy full SHA for 3963172
.github/workflows/actions/toolchain-and-cache/action.yml
@@ -21,14 +21,16 @@ runs:
21
- name: Rust Cache
22
uses: Swatinem/rust-cache@v2
23
with:
24
+ # only save the cache on the main branch to limit github actions total cache size
25
+ save-if: ${{ github.ref == 'refs/heads/main' }}
26
key: ${{ runner.os }}-cache-v${{ inputs.cache-version }}
-
27
+
28
- name: Install cargo tools installer
29
uses: taiki-e/install-action@v2
30
if: inputs.cargo-tools != ''
31
32
tool: cargo-binstall
33
34
- name: Install cargo tools
35
36
shell: bash
0 commit comments