Skip to content

Commit

Permalink
Merge pull request input-output-hk#1770 from input-output-hk/djo/redu…
Browse files Browse the repository at this point in the history
…ce_github_actions_rust_cache

Only save github action rust cache on main branch
  • Loading branch information
Alenar authored Jun 21, 2024
2 parents 93da290 + be720fd commit 3963172
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/actions/toolchain-and-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ runs:
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
# only save the cache on the main branch to limit github actions total cache size
save-if: ${{ github.ref == 'refs/heads/main' }}
key: ${{ runner.os }}-cache-v${{ inputs.cache-version }}

- name: Install cargo tools installer
uses: taiki-e/install-action@v2
if: inputs.cargo-tools != ''
with:
tool: cargo-binstall

- name: Install cargo tools
if: inputs.cargo-tools != ''
shell: bash
Expand Down

0 comments on commit 3963172

Please sign in to comment.